You are not logged in.

#1 2014-05-10 15:00:48

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Arch logout theme lost

Ever since installing Arch, logging out from Openbox put me into an Arch theme (I believe that is what a graphic display on the monitor is called) that prompted one to enter a command, such as halt or reboot, and displayed a message such as "system is now rebooting".

After an update of Debian "squeeze" which is also on my drive, that theme does not appear any more.  Instead I am put into a blank "arch login:" terminal from which as root I can halt or reboot.  This is slower and less convenient.  Can anyone point to where to look to make that theme function again?

Offline

#2 2014-05-10 15:07:29

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Arch logout theme lost

Er ... I don't know what this "Arch theme" you are referring to is - unless it is just the tty console.

Did it actually prompt you to enter halt or reboot, or was there just a terminal prompt at which you could enter any command (including halt and reboot)?  In other words, is the "Arch theme" you are referring to the same thing you get to when you login where you see the "arch login:"?

If so, it sounds like you are just being logged out after X exits.  This could come from changing the command that starts X/openbox from "xinit" to "exec xinit".

But more details will be needed.  In addition to the above questions, can you also clarify how you start X?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2014-05-10 15:16:40

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: Arch logout theme lost

Sounds to me like you're describing slim. I don't understand why you don't know what it's called, presumably you installed and configured it?

I have to ask, are you using Arch, or one of the derivatives?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2014-05-11 16:14:40

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Re: Arch logout theme lost

Thanks for the help.  I am using slim, set to auto_log.  First what appears on the monitor is a black page with "ARCH (tty1)" at the top left corner and "arch login:" just under it.  It disappears and Arch is booted ready to go, with conky, tinit2 etc. showing.

Now when I log out of openbox that same black page (which I assume is the console) appears instead of the slim.login "theme".  I have located that theme at /usr/share/slim/themes/default as backgrouond.jpg and panel.png.  I haven't found out how to reactivate it (for logging out, not for logging in).

Offline

#5 2014-05-11 17:38:13

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: Arch logout theme lost

You could try the solution offered here.

Offline

#6 2014-05-11 19:30:28

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Arch logout theme lost

So my suspicion that it was just a TTY has been confirmed.  Could you then provide the information I requested so we might be able to help you?

Also, if you don't know what the TTY is, then I gather WorMzy's suspicion is also likely correct, that you are actually using an spin off distro, not actually Arch linux.  If this is true, this is relevant: each of these distros do their own unique customization of the login process.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2014-05-11 19:54:37

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Re: Arch logout theme lost

Trilby, I am using (as per conky) arch - Linux 3.14.2.1-ARCH on i686.  Haven't quite reached Shakespeare's seventh stage of man (destitution, i.e., dementia) but darned if I can remember how X starts.

Hank, I had come across that problem and used (in /etc/slim.conf) " sessionstop_cmd systemctl restart slim.service" as recommended in Arch's description of slim for getting around an incompatibilty with systemd.  I changed it to the exact syntax of your post, but it didn't help.

Offline

#8 2014-05-11 20:06:35

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Arch logout theme lost

If you can't be "darned to remember" (or apparently find out) then why should we be darned to try to help.

And yet again, are you actually using Arch linux, or a spinoff like ArchBang?  If you don't know how X starts I am pretty confident you are not actually using archlinux - and your avoidance of this question seems to support this theory.

If you are using a different distro, you'll really have to ask on their forums as again, they configure things differently.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2014-05-11 20:53:34

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Arch logout theme lost

Trilby, I have a hunch you are on the right track there.
Never the less, even though we are talking about rule #19, we we still expect everyone to comply with rule #1


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#10 2014-05-11 23:49:36

dif
Member
From: Stalowa Wola, Poland
Registered: 2009-12-22
Posts: 146

Re: Arch logout theme lost

If henk's solution doesn't work, perhaps there's someting wrong with the way you start openbox. It seems you start it from within ~/.xinitrc. Chcek if you have ".xinitrc" in your home directory. The command to start openbox should be

exec openbox-session

There is something I cannot understand in your original post. Do you say that by updating your Debian Squeeze installation you changed the behaviour of slim under Arch Linux? Is it possible that you managed to install two linux distributions to one root partition? I didn't think it was feasible.

Offline

#11 2014-05-12 19:30:36

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Re: Arch logout theme lost

dif: thanks, but (1) my .xinitrc has the "exec openbox-session" command.  It also has "xrdb -load ~/.Xresources &".  Also I find slim.log continually reports ""slim: waiting for X server to begin accepting connections" and "slim: waiting for X sevrer to shutdown".
(2) My original post was not entirely correct.  I first upgraded arch and then debian squeeze immediately after.  The grub menu that starts arch is in the debian partition.  When debian upgrades it changes some UUIDs.  I had to fiddle arround with UUIDs to select arch again.  I jumped to the conclusion that the loss of my arch login theme was caused by debian, but it could have been the arch upgrade, or even something else (but it happened right after the upgrades).

trilby: (1) As mentioned, my distribution is arch linux 3.14.2.1 ARCH on i686, and is not a spinoff.
          (2) As a novice I have managed with good forum help to get arch going and nicely configured.   I haven't yet given up the safety of debian for my essential work.  I like arch.  You could say that I don't belong in arch because I am an elderly person active in other fields with little time to understand every twist and turn of systemd, Xorg, X, X11, etc.  But I am gaining ground and hope to stay, if I am not unwelcome.

Offline

#12 2014-05-12 19:34:06

headkase
Member
Registered: 2011-12-06
Posts: 2,008

Re: Arch logout theme lost

hilltownboy wrote:

...But I am gaining ground and hope to stay, if I am not unwelcome.

Of course you're welcome. wink  Trying to find out if you are actually using Arch instead of a derivative is an important thing.  Derivatives do things differently.  Sometimes that makes a huge difference.  There have been many threads here where people have been trying to help for 10 or 20 posts only to find out in the end that it is a derivative and that that was the problem - it wasn't Arch and does things differently.

Offline

#13 2014-05-14 00:39:47

dif
Member
From: Stalowa Wola, Poland
Registered: 2009-12-22
Posts: 146

Re: Arch logout theme lost

To sum up what we know:
- Your X server is started by slim.
- Slim gets you automatically logged into your openbox session and most likely you do not even see the graphal login screen at all.
- When you log out, your X server is turned off and never switches on again, and as a result you end up in a TTY console/terminal.

The command in /etc/slim.conf that you yourself mentioned:

sessionstop_cmd systemctl restart slim.service

is supposed restart slim in such situations as yours. Henk's advice also aimed at restarting slim. (As a digression, I have never needed to set it up on my computers).

Perhaps this is a stupid question, but are you sure you unhashed the line in slim with that command? If you did unhash it, it should work unless...
by "logging out" you mean "trying to poweroff".

If you were able to log out as you say you want to, your slim.service would be restarted and the graphical environment (X server) would be restarted by slim and you would be automatically logged in to another openbox session. This suggests that you do not mean "logging out" but rather "switching your computer off".

If you do mean "logging out", try hashing that xrdb command in your .xinitrc, although I don't believe it will work.

Offline

#14 2014-05-14 08:32:24

Kartious
Member
From: UK
Registered: 2013-03-23
Posts: 311

Re: Arch logout theme lost

hilltownboy wrote:

trilby: (1) As mentioned, my distribution is arch linux 3.14.2.1 ARCH on i686, and is not a spinoff.
          (2) As a novice I have managed with good forum help to get arch going and nicely configured.   I haven't yet given up the safety of debian for my essential work.  I like arch.  You could say that I don't belong in arch because I am an elderly person active in other fields with little time to understand every twist and turn of systemd, Xorg, X, X11, etc.  But I am gaining ground and hope to stay, if I am not unwelcome.

All Arch needs to the ability to RTFM and some common PC / Linux Architecture knowledge which isn't exactly a demanding trait for someone who wants to use Linux. Anyone is welcome on the forums if they are willing to participate and to work with the kind users who are trying to help you. Asking and responding the smart way will also get you a lot further too.

A good example when Tribly questioned you about your Distro you should of just put the output of

 uname -a

And you should also post outputs of config files or logs. Sometimes just saying "XYZ line is in there!" doesn't quite cut it.

Last edited by Kartious (2014-05-14 08:33:44)

Offline

#15 2014-05-15 15:11:18

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Re: Arch logout theme lost

dif: You are very understanding and your summary is exactly my situation.
By "logging out", I meant logging out of openbox, which should (but doesn't now) bring up the slim.theme that permits entering "reboot" or "halt" without going back to the tty console.
As recpmended by Kartious, here is my /etc/slim.conf

# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path        /bin:/usr/bin:/usr/local/bin
default_xserver     /usr/bin/X
xserver_arguments -nolisten tcp vt07

# Commands for halt, login, etc.
halt_cmd            /sbin/shutdown -h now
reboot_cmd          /sbin/shutdown -r now
console_cmd         /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd        /usr/sbin/suspend

# Full path to the xauth binary
xauth_path         /usr/bin/xauth 

# Xauth file for server
authfile           /var/run/slim.auth


# Activate numlock when slim starts. Valid values: on|off
# numlock             on

# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor          false

# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd           exec /bin/sh - ~/.xinitrc %session
login_cmd           exec /bin/bash -login ~/.xinitrc %session

# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd	some command
  sessionstop_cmd	systemctl restart slim.service

# Start in daemon mode. Valid values: yes | no
# Note that this can be overriden by the command line
# options "-d" and "-nodaemon"
# daemon	yes

# Set directory that contains the xsessions.
# slim reads xsesion from this directory, and be able to select.
sessiondir            /usr/share/xsessions/

# Executed when pressing F11 (requires imagemagick)
screenshot_cmd      import -window root /slim.png

# welcome message. Available variables: %host, %domain
welcome_msg         Welcome to %host

# Session message. Prepended to the session name when pressing F1
# session_msg         Session: 

# shutdown / reboot messages
shutdown_msg       The system is halting...
reboot_msg         The system is rebooting...

# default user, leave blank or remove this line
# for avoid pre-loading the username.
default_user         norman

# Focus the password field on start when default_user is set
# Set to "yes" to enable this feature
#focus_password      no

# Automatically login the default user (without entering
# the password. Set to "yes" to enable this feature
auto_login           yes

# current theme, use comma separated list to specify a set to
# randomly choose from
current_theme       default

# Lock file
lockfile            /var/lock/slim.lock

# Log file
logfile             /var/log/slim.log

Offline

#16 2014-05-15 16:01:14

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Arch logout theme lost

IIRC. Slim uses the ~/.xinitrc for each user.  Could you post that file here?
Also, Next time you log out of OpenBox and do not make it back to Slim, Please hop over to another TTY. log in, and post the output of systemctl status


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#17 2014-05-15 19:34:13

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Re: Arch logout theme lost

ewaller, thanks.  Here is ~/.xinitrc, but I can't figure out how to post the output of "systemctl status".  It won't be copied from the console; if redirected it complains that the the destination is a directory.

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

xrdb -load ~/.Xresources &

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
exec openbox-session

Offline

#18 2014-05-15 21:08:37

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Arch logout theme lost

I see nothing wrong with that .xinitrc

I don't know why you cannot redirect, but if you have wgetpaste installed, issue the command systemctl status | wgetpaste
and post the link it provides here.

Example:

ewaller$@$odin ~ [1]1011 %systemctl status | wgetpaste
Your paste can be seen here: http://bpaste.net/show/279223/
ewaller$@$odin ~ 1012 %

Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#19 2014-05-16 22:07:52

dif
Member
From: Stalowa Wola, Poland
Registered: 2009-12-22
Posts: 146

Re: Arch logout theme lost

You can hop over to anther TTY (in this example to TTY1) by pressing keys <control>+<alt>+<F1>.
You log in in the text mode.
You issue

systemctl status > sys_status.txt

and you should have a file "sys_status.txt" in your home directory containing the information ewaller asked for.

There is something I feel I need to repeat and explain: Supposing everything works as it should on your computer, you will never get a chance of coming back to the login screen, because as soon as you log out you will get automatically logged back in as a default user to a graphical session. This because of the line

auto_login          yes

in your /etc/slim.conf.
In order to have a chance of logging in as another user, shutting down/powering off, or rebooting from the slim graphical login screen after you have logged out, you need to turn of the auto_login to "no" in /etc/slim.conf.
Remember that "auto_login" set to "no" will result in your having to type in your password everytime you start your computer.

Coming back to the main topic:  Do you have the file ".config/openbox/menu.xml"? If so, what does its "<item label="Log Out">" section look like? Or what does an "exit-menu" look like if you have got one in the menu.xml file?

Offline

#20 2014-05-17 13:40:49

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Re: Arch logout theme lost

ewaller: here is systemctl status (I got redirection to work)

* arch
    State: degraded
     Jobs: 0 queued
   Failed: 2 units
    Since: Sat 2014-05-17 09:25:01 UTC; 7min ago
   CGroup: /
           |-1 /sbin/init
           |-system.slice
           | |-slim.service
           | | `-506 /usr/bin/X -nolisten tcp vt07 -auth /var/run/slim.auth
           | |-dbus.service
           | | `-226 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
           | |-systemd-logind.service
           | | `-225 /usr/lib/systemd/systemd-logind
           | |-dhcpcd.service
           | | `-228 /usr/bin/dhcpcd -q -b
           | |-wpa_supplicant.service
           | | `-223 /usr/bin/wpa_supplicant -u
           | |-systemd-udevd.service
           | | `-142 /usr/lib/systemd/systemd-udevd
           | |-systemd-journald.service
           | | `-125 /usr/lib/systemd/systemd-journald
           | |-system-getty.slice
           | | `-getty@tty1.service
           | |   `-286 /sbin/agetty --noclear tty1 linux
           | `-system-netctl\x2dauto.slice
           |   `-netctl-auto@wlp16s0.service
           |     |-289 wpa_supplicant -B -P /run/wpa_supplicant_wlp16s0.pid -i wlp16s0 -D nl80211,wext -c/run/network/wpa_supplicant_wlp16s0.conf -W
           |     `-291 wpa_actiond -p /run/wpa_supplicant -i wlp16s0 -P /run/network/wpa_actiond_wlp16s0.pid -a /usr/lib/network/auto.action
           `-user.slice
             `-user-1000.slice
               |-session-c1.scope
               | |-287 /usr/bin/slim -nodaemon
               | |-572 /usr/bin/openbox --startup /usr/lib/openbox/openbox-autostart OPENBOX
               | |-578 dbus-launch --sh-syntax --exit-with-session
               | |-579 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
               | |-590 sh /home/norman/.config/openbox/autostart
               | |-591 conky -q
               | |-604 tint2
               | |-675 /usr/lib/at-spi2-core/at-spi-bus-launcher
               | |-812 xterm
               | |-814 /usr/bin/luit
               | |-815 bash
               | `-817 systemctl status
               `-user@1000.service
                 |-569 /usr/lib/systemd/systemd --user
                 `-570 (sd-pam)  

Offline

#21 2014-05-17 14:09:28

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Re: Arch logout theme lost

dif: Here is the logout section from .config/openbox/meniu.xml

<menu id="root-menu" label="Openbox 3">
  <separator label="Applications" />
  <menu id="apps-accessories-menu"/>
  <menu id="apps-editors-menu"/>
  <menu id="apps-graphics-menu"/>
  <menu id="apps-net-menu"/>
  <menu id="apps-office-menu"/>
  <menu id="apps-multimedia-menu"/>
  <menu id="apps-term-menu"/>
  <menu id="apps-fileman-menu"/>
  <separator label="System" />
  <menu id="system-menu"/>
  <separator />
  <item label="Log Out">
    <action name="Exit">
      <prompt>yes</prompt>  
    </action>
  </item>
</menu>

</openbox_menu>

I do have "auto_login     yes"  but in the past that did not prevent the login theme from showing up right after logout openbox

Offline

#22 2014-05-17 14:30:47

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Arch logout theme lost

The problem I see is that OpenBox is not exiting.  For that matter, neither is your autostart script.  What happens if you kill the openbox process (572 in the output provided)?  What happens if you kill the autostart script (590 in the output you provided)?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#23 2014-05-17 23:26:54

dif
Member
From: Stalowa Wola, Poland
Registered: 2009-12-22
Posts: 146

Re: Arch logout theme lost

Your Log-Out section in menu.xml looks OK.
If not logging out, then perhaps starting the openbox-session is somehow flawed. Perhaps it is the command

sh /home/norman/.config/openbox/autostart

that ewaller pointed at (prosess 590) that holds logging out.
What is there in your ~/.config/openbox/autostart file?

When you log in your openbox-session, try checking if the "sh /home/norman/.config/openbox/autostart" process is running. In a terminal run

ps aux|grep -v|grep "sh /home/norman/.config/openbox/autostart"

If the process is running, kill it with

kill <process no>

where the <process no> is the first number after your user's name shown in the output of the previous command (the 'ps...' command).

Of course, try killing the openbox process (572 in your listing) if the other killing does not help.

Here's some advice how to find out current process numbers. Put this alias in your ~/.bashrc

alias psgr='ps aux|grep -v grep|grep'

and just restart your terminal. Running

psgr <name>

will tell you if a process including <name> is running and will show you its number. Try "psgr openbox", for example.

Offline

#24 2014-05-18 03:28:01

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Re: Arch logout theme lost

ewaller, I found the 572 process command in /usr/bin/openbox-session and commented it out.  The result:  on booting, openbox did not open, the system just stayed in the tty1 console.
The only active parts of 590 (.config/openbox/autostart) are:

(sleep 1 && tint2) &
 conky -q &

Offline

#25 2014-05-18 14:29:13

hilltownboy
Member
From: Massachusetts
Registered: 2013-08-15
Posts: 100

Re: Arch logout theme lost

I should add that the 572 process does not show up in ps, in other words it is not running after booting  up into openbox.
Also with auto_login in slim.conf changed from yes to no, everything works normally both logging in and logging out, using the login theme.
With auto_login at yes, the theme part is avoided and I don't have to log in to get going but on logging out the theme part is not showing up either, whereas formerly it did, which actually was more convenient than going back to the console.

Offline

Board footer

Powered by FluxBB