! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-power-manager-0.8.0-alpha: laptop will not resume from suspend or hiber...
Status:
CLOSED: INVALID
Product:
Xfce4-power-manager
Component:
General

Comments

Description Wilfred van Rooijen 2009-04-15 02:12:27 CEST
Compaq Presarion CQ60 dual AMD-64 laptop with Gentoo Linux. Using Xfce4, and installed xfce4-power-manager-0.8.0-alpha. Several issues arise and I have tried to search google etc but to no avail.

When logging into Xfce (with slim), the power manager icon shows up OK. But every time I change a setting, the defaults are reset upon the next login. Inconvenient.

LCD brightness app reports 'no device found'. I have Xorg-1.5.3 with nVidia drivers + evdev + synaptics which seems to work fine otherwise.

The biggest problem is resuming from suspend. If I close the lid or if I click the power manager icon and select 'suspend', the laptop suspends. But if I press the power button then or open the lid, I get a black screen with a cursor blinking. The machine is non-responsive. The only way to get something is to do ctrl-alt-backspace (backlight flashes on and off). This gives me an Xscreensaver dialog telling me that the authentication has failed for the user. I can use ctrl-alt-F1 to go to a different TTY, but upon typing in a user name, the machine just thinks for 2 seconds, then I get a new login prompt (not being asked for password or anything).

Using ctrl-alt-F12 gives me the messages, where I see many I/O errors to the HDDs, for example syslog has 'trying to write to read-only filesystem', 'I/O Buffer Error', etc etc. The only solution is to press the power button for a long time, then the machine shuts down. I have noticed that upon startup the machine does mention 'file system is clean', which means it was unmounted when the power went off. So it seems that something funny is going on with the resume option.

Produce: close lid or select 'suspend', then open lid or press power button

Reproducible: always.
Comment 1 Ali Abdallah editbugs 2009-04-15 07:02:56 CEST
(In reply to comment #0)
> Compaq Presarion CQ60 dual AMD-64 laptop with Gentoo Linux. Using Xfce4, and
> installed xfce4-power-manager-0.8.0-alpha. Several issues arise and I have
> tried to search google etc but to no avail.
> 
> When logging into Xfce (with slim), the power manager icon shows up OK. But
> every time I change a setting, the defaults are reset upon the next login.
> Inconvenient.


Please updates to the beta2 and you will not have these problems.

> 
> LCD brightness app reports 'no device found'. I have Xorg-1.5.3 with nVidia
> drivers + evdev + synaptics which seems to work fine otherwise.

Attach me here the output of lshal please.

> 
> The biggest problem is resuming from suspend. If I close the lid or if I click
> the power manager icon and select 'suspend', the laptop suspends. But if I
> press the power button then or open the lid, I get a black screen with a cursor
> blinking. The machine is non-responsive. The only way to get something is to do
> ctrl-alt-backspace (backlight flashes on and off). This gives me an
> Xscreensaver dialog telling me that the authentication has failed for the user.
> I can use ctrl-alt-F1 to go to a different TTY, but upon typing in a user name,
> the machine just thinks for 2 seconds, then I get a new login prompt (not being
> asked for password or anything).
> 
> Using ctrl-alt-F12 gives me the messages, where I see many I/O errors to the
> HDDs, for example syslog has 'trying to write to read-only filesystem', 'I/O
> Buffer Error', etc etc. The only solution is to press the power button for a
> long time, then the machine shuts down. I have noticed that upon startup the
> machine does mention 'file system is clean', which means it was unmounted when
> the power went off. So it seems that something funny is going on with the
> resume option.
> 
> Produce: close lid or select 'suspend', then open lid or press power button
> 
> Reproducible: always.

Please note that xfce4-power-manager has nothing to do with resuming from suspend or from hibernate, it is the kernel work, and in Linux world those functionalities are not expected to work in all the systems, please contact your distribution maintainers so they can provide you a work-around for that, sometimes you need to unload some modules before going to suspend/hibernate. googling a bit i found many people are having the same problem.
Comment 2 Wilfred van Rooijen 2009-04-15 23:22:49 CEST
Created attachment 2294 
Output of lshal on Compaq Presario CQ60
Comment 3 Wilfred van Rooijen 2009-04-15 23:29:46 CEST
For future reference: the issues of non-resuming laptop after suspend was solved in my case by adding 

pci=nomsi

to the boot options (in my case, in /boot/boot/grub.conf )


(In reply to comment #2)
> Created an attachment (id=2294) [details]
> Output of lshal on Compaq Presario CQ60
Comment 4 Ali Abdallah editbugs 2009-04-16 07:04:29 CEST
(In reply to comment #2)
> Created an attachment (id=2294) [details]
> Output of lshal on Compaq Presario CQ60

Hal doesn't have any information about your backlight, thus the brightness control is disabled in xfce power manager, again it is not xfpm fault, it is just the backlight driver is not detected. it might work with xrandr (currently not implemented in xfce4 power manager), but you can try it from the command line.
print possible brightness value with:

xrandr --prop

to set it
xrandr --output LVDS --prop BACKLIGTH value ( where value is an integer between the range that you see from the above command ).

If this works, then for future version of xfpm you will have it the brightness working.
Comment 5 Wilfred van Rooijen 2009-04-18 00:58:17 CEST
xrandr did not report anything about backlight. Searching on google, I found I needed to set in the kernel:

CONFIG_ACPI_VIDEO=y

it turns out that the dimming of LCDs is a more commonly encountered problem on certain laptops. The setting of CONFIG_FB_BACKLIGHT does not solve the problem. The CONFIG_ACPI_VIDEO is set to FALSE by default and needs to be specifically activated. I recompiled and everything seems to work fine, both the panel applet and Fn+F7 and Fn+F8

BTW with the new kernel xrandr still does not report anything about backlight, but the panel applet works.


(In reply to comment #4)
> (In reply to comment #2)
> > Created an attachment (id=2294) [details] [details]
> > Output of lshal on Compaq Presario CQ60
> 
> Hal doesn't have any information about your backlight, thus the brightness
> control is disabled in xfce power manager, again it is not xfpm fault, it is
> just the backlight driver is not detected. it might work with xrandr (currently
> not implemented in xfce4 power manager), but you can try it from the command
> line.
> print possible brightness value with:
> 
> xrandr --prop
> 
> to set it
> xrandr --output LVDS --prop BACKLIGTH value ( where value is an integer between
> the range that you see from the above command ).
> 
> If this works, then for future version of xfpm you will have it the brightness
> working.
Comment 6 Ali Abdallah editbugs 2009-04-18 07:23:47 CEST
(In reply to comment #5)
> xrandr did not report anything about backlight. Searching on google, I found I
> needed to set in the kernel:
> 
> CONFIG_ACPI_VIDEO=y
> 
> it turns out that the dimming of LCDs is a more commonly encountered problem on
> certain laptops. The setting of CONFIG_FB_BACKLIGHT does not solve the problem.
> The CONFIG_ACPI_VIDEO is set to FALSE by default and needs to be specifically
> activated. I recompiled and everything seems to work fine, both the panel
> applet and Fn+F7 and Fn+F8
> 
> BTW with the new kernel xrandr still does not report anything about backlight,
> but the panel applet works.
xfce power manager (including the panel applet) use HAL to detect baccklight device, we don't use xrandr yet.
> 
> 

I'm happy that you manage to solve your problems, in case you encounter problems and you think they are coming from xfpm please report again.
Comment 7 Ali Abdallah editbugs 2009-07-02 14:07:15 CEST
Closing old bugs to keep things organized.

Bug #5234

Reported by:
Wilfred van Rooijen
Reported on: 2009-04-15
Last modified on: 2009-07-14

People

Assignee:
Ali Abdallah
CC List:
0 users

Version

Version:
Unspecified

Attachments

Output of lshal on Compaq Presario CQ60 (98.81 KB, application/octet-stream)
2009-04-15 23:22 CEST , Wilfred van Rooijen
no flags

Additional information