You are not logged in.

#1 2010-08-11 20:19:57

kyeana
Member
Registered: 2010-01-26
Posts: 36

Hanging on poweroff/reboot from X

Just installed arch on my desktop. and am having problems with calling poweroff or reboot from within an X session. When i call either of those commands, both my monitors will go blank, and then the images on the monitors will mirror each other and the whole system freezes (i can't access any tty terminals), requiring a hard reboot.

This didn't happen when i had KMS enabled, but with KMS it was only picking up one of my monitors, so i disabled that and created a X monitor conf file. While i am running on the system, it works perfectly, i can move windows between screens, the resolution is correct, there are no slow downs, freezes, etc.

The only errors i see in the XOrg log is (WW) Direct rendering disabled, but I don't think  that would explain this issue. Any advice on where i can look to get this working, either fixing this issue without using KMS or getting KMS to properly identify both monitors?

Thanks

Offline

#2 2010-08-11 21:31:29

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: Hanging on poweroff/reboot from X

Can xrandr detect both monitors?

Offline

#3 2010-08-12 00:55:43

kyeana
Member
Registered: 2010-01-26
Posts: 36

Re: Hanging on poweroff/reboot from X

EDIT: sorta.

With KMS enabled it can still detect both monitors, however, it will mirror both of them and only one of the monitors has the correct resolution (there is a 1920x1200 and 1280x1024 monitor).

If is use the given 10-monitor.conf (mostly from the wiki):

Section "ServerLayout"
    Identifier    "DualSreen"
    Screen        0 "Screen0"
    Screen        1 "Screen1" LeftOf "Screen0"
    Option        "Xinerama"
EndSection

Section "Monitor"
    Identifier    "Monitor0"
    Option        "Enable" "true"
EndSection

Section "Monitor"
    Identifier    "Monitor1"
    Option        "Enable" "true"
EndSection

Section "Device"
    Identifier    "Device0"
    Driver        "radeon"
    Screen        0
EndSection

Section "Device"
    Identifier    "Device1"
    Driver        "radeon"
    Screen        1
EndSection

Section "Screen"
    Identifier    "Screen0"
    Device        "Device0"
    Monitor        "Monitor0"
    DefaultDepth    16
    Option        "TwinView" "0"
    SubSection "Display"
        Depth 16
        Modes "1920x1200_60.00"
    EndSubSection
EndSection

Section "Screen"
    Identifier    "Screen1"
    Device        "Device1"
    Monitor        "Monitor1"
    DefaultDepth    16
    Option        "TwinView" "0"
    SubSection "Display"
        Depth 16
        Modes "1280x1024_60.00"
    EndSubSection
EndSection

Then only one of my monitors works, and xrandr says xlib: Extension "RANDR" missing on display "0:0".

Last edited by kyeana (2010-08-12 01:06:01)

Offline

#4 2010-08-12 01:03:28

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: Hanging on poweroff/reboot from X

Do you need an xorg.conf (that is, your monitor.conf)? I'm using two monitors (laptop + external) and use xrandr to set them. I don't have an xorg.conf.

Offline

#5 2010-08-12 01:05:12

kyeana
Member
Registered: 2010-01-26
Posts: 36

Re: Hanging on poweroff/reboot from X

Updated my previous post. Sorry, i jumped the gun on typing that one out.

Offline

#6 2010-08-12 01:10:38

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: Hanging on poweroff/reboot from X

Given that:

1) without an xorg.conf, both monitors are detected by xrandr, and
2) with an xorg.conf, only one monitor works and xrandr dies,

maybe you should go without an xorg.conf, then use xrandr to configure the monitors.  I use something like:

xrandr --output VGA1 --right-of LVDS1

Offline

#7 2010-08-12 01:49:26

kyeana
Member
Registered: 2010-01-26
Posts: 36

Re: Hanging on poweroff/reboot from X

I will set it up that way for now, thanks for the help.

If anyone has any advice for getting this working with xorg I would still be interested in it, but this is a working solution.

Offline

#8 2010-08-12 01:53:57

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: Hanging on poweroff/reboot from X

You can set up a autostart/startup script in your desktop environment (or window manager) that runs the xrandr command.  That way, it does it for you.  For example, in xfce, you go to Settings->Session and Startup and add the script.  That's what I do, anyway.

Offline

#9 2010-08-12 02:02:26

kyeana
Member
Registered: 2010-01-26
Posts: 36

Re: Hanging on poweroff/reboot from X

Yea I am using openbox and was just going to put it the .xinitrc.

Thanks

Offline

Board footer

Powered by FluxBB