Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 21
Guys, you are my last hope. I tried on dedicated Arch forums (my current linux), on ubuntu forums (my previous system) and no one was able to help me. Whatever ...
  1. #1
    Just Joined!
    Join Date
    Nov 2007
    Posts
    44

    Arrow Hard one - shutdown / session problems

    Guys, you are my last hope. I tried on dedicated Arch forums (my current linux), on ubuntu forums (my previous system) and no one was able to help me.

    Whatever I do, I can't get my linux to reboot, shutdown or hibernate.

    Here is some new info:

    I am using stripped down xfce4 with compiz and emerald.

    Here's my .xinitrc
    Code:
    cairo-dock &
    xfdesktop &
    /home/juha/bin/startup.sh &
    exec ck-launch-session compiz ccp
    and my startup script
    Code:
    sh -c "sleep 5 && wicd-client" &
    sh -c "python2 -u /usr/share/screenlets/Radio/RadioScreenlet.py" &
    sh -c "python2 -u /home/juha/.screenlets/NowCalendar/NowCalendarScreenlet.py" &
    sh -c "python2 -u /usr/share/screenlets/Tomboy/TomboyScreenlet.py" &
    sh -c "xbindkeys" &
    sh -c "xfce4-volumed" &  
    sh -c "sleep 25 && conky" &
    while true; do emerald --replace; sleep 1; done &
    1. My login manager is SLIM which I use to autologin.
    Code:
    # 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    some command
    
    # Start in daemon mode. Valid values: yes | no
    # Note that this can be overriden by the command line
    # options "-d" and "-nodaemon"
    # daemon    yes
    
    # Available sessions (first one is the default).
    # The current chosen session name is replaced in the login_cmd
    # above, so your login command can handle different sessions.
    # see the xinitrc.sample file shipped with slim sources
    sessions            xfce4,icewm,wmaker,blackbox
    
    # 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        juha
    
    # 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 (doesn't contain anything useful)




    2.
    Code:
    $ ck-list-sessions
    Session2:
        unix-user = '1001'
        realname = '(null)'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ':0.0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2011-05-02T07:37:59.343950Z'
        login-session-id = '1'
    Session1:
        unix-user = '1001'
        realname = '(null)'
        seat = 'Seat2'
        session-type = ''
        active = FALSE
        x11-display = ':0.0'
        x11-display-device = ''
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2011-05-02T07:37:58.783769Z'
        login-session-id = '1'
    3. Here is what happens when I try to reboot with the .xinitrc file I published above - it freezes on console login screen:
    youtube.com/watch?v=21NWeOvGwic]YouTube - DSCF4387

    4. Here is what happens if I change the .xinitrc file to this:
    Code:
    #!/bin/sh
    exec ck-launch-session dbus-launch --sh-syntax --exit-with-session /home/juha/.xstart
    and script file:
    Code:
    #!/bin/sh
    pcmanfm --desktop &
    compiz ccp &
    sh -c "python2 -u /usr/share/screenlets/Radio/RadioScreenlet.py" &
    sh -c "python2 -u /home/juha/.screenlets/NowCalendar/NowCalendarScreenlet.py" &
    sh -c "python2 -u /usr/share/screenlets/Tomboy/TomboyScreenlet.py" &
    sh -c "xbindkeys" &
    sh -c "xfce4-volumed" &  
    sh -c "sleep 5 && conky" &
    emerald --replace &
    cairo-dock
    It won't even login:
    youtube.com/watch?v=WzIjnbcocD4]YouTube - DSCF4385

    Same thing happens if I remove SLIM and use manual console login/startx

    Help!

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    Go into the BIOS and make sure you have ACPI (Advanced Configuration and Power Management) enabled. That is necessary (usually) for power management to be functional. Also, make sure you are booting with ACPI enabled (or not disabled).
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Nov 2007
    Posts
    44
    By 'enabled' do you mean module loaded?
    I have thinkpad_acpi loaded (I run Thinkpad R61). Should I have anything else acpi-related?

  4. #4
    Just Joined!
    Join Date
    Nov 2007
    Posts
    44
    So, I enabled all acpi-related modules with no positive result.
    Also, my BIOS options are numerous for a laptop, but ACPI is not mentioned even once.

    I will add reboot used to work on this system before I did a million things to make it more to my liking.

  5. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    What kernel are you running?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  6. #6
    Just Joined!
    Join Date
    Nov 2007
    Posts
    44
    Linux 2.6.38-ARCH #1 SMP PREEMPT Tue May 3 07:40:34 CEST 2011 x86_64 Intel(R) Core(TM)2 Duo CPU T8100 @ 2.10GHz GenuineIntel GNU/Linux

    I might add that shutdown/reboot/suspend don't work without sudo even though I did everything listed here:
    wiki.archlinux.org/index.php/Allow_Users_to_Shutdown

  7. #7
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    Ok. That's a very new kernel, and you are running 64-bits. So, with sudo, users can shut down the system? Can they shut it down from the login screen GUI?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  8. #8
    Just Joined!
    Join Date
    Nov 2007
    Posts
    44
    As you can see from the youtube movies, I can't. It does shut down to the point where it freezes on console login.

  9. #9
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    Quote Originally Posted by Lockheed View Post
    As you can see from the youtube movies, I can't. It does shut down to the point where it freezes on console login.
    YouTube movies? Huh? You are one post from being able to embed URLs in your postings, but you can put some judicious spaces to fool the system so I can see what you mean.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  10. #10
    Just Joined!
    Join Date
    Nov 2007
    Posts
    44
    The links are in the first post but with some extra rubbish in them
    youtube.com/watch?v=21NWeOvGwic
    youtube.com/watch?v=WzIjnbcocD4

Page 1 of 3 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...