Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
2009/5/20 Chow Loong Jin hyper...@gmail.com On Wed, 2009-05-20 at 01:30 +, maximi89 wrote: Thanks! Chow, how looks your configuration?... My configuration is the default. I did not change it. you think this file need come with a default settings for works? in my case with the default settings doesn't works... i going to make more test, but i don't undersdtand really how i can use the /etc/pm/config.d refer: http://en.opensuse.org/Pm-utils Any file in /etc/pm/config.d will be evaluated for configuration variables, which are listed in /usr/lib/pm-utils/defaults. why edit another file? because the defaults config of that file will be overwrite with the default settings that does´t works... i think we need to ask to the people what configuration works in all cases. in this case creating a file called modules or config inside /etc/pm/config.d this would work?... i think the default set for this file need to be with the next modules SUSPEND_MODULES=button ehci_hcd ohci_hcd uhci_hcd iwl3945 HIBERNATE_MODE=shutdown Yes, just dump these lins inside a file in /etc/pm/config.d. Any name can be used for the file. Sorry, but i hear a lot of people with the same problem, because platform does not work, for me works hibernate only with pm-utils, but when i install uswsusp this come with platform, and that don´t works for alot of people, susend to disk don´t work in all...this need some parameters, most people don´t use hibernate, so they don´t report this problems, i think pm-utils need come with the modules be default. Because the default configuration it's platform, and that does not works... about the modules, if you suspend without this parameters suspend don't works too... still poweron and freeze... What do you think about? all here... what think about this? who have problems or need make this change when installd the system? platform is the default because it mean that system-specific optimizations can be done. If disk works for you then use disk, but platform will remain the default, because that's what works for most people. -- Regards, Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a direct subscriber of the bug. Thanks! -- Maximiliano Augusto Castañón Araneda Santiago, Chile Linux user # 394821 -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Mon, 2009-05-18 at 21:25 +, maximi89 wrote: guys, edit the file of pm-utils /usr/lib/pm-utils/defaults maxim...@maximiliano:/usr/share/emesene$ cat /usr/lib/pm-utils/defaults ## # DO NOT EDIT THIS FILE! # ## # Add files in /etc/pm/config.d/ instead!# ## # Default method to power down the system when hibernating. # If commented out, the system will use the kernel default as a # default value. # # Check /sys/power/disk for valid values. The default value # will be surrounded by [square brackets]. HIBERNATE_MODE=shutdown # Whether we need to post the video card when resuming from # hibernate. You should not normally need to set this. # In the future pm-utils will get this setting from HAL. # # Valid values are no and yes # HIBERNATE_RESUME_POST_VIDEO=no # The default sleep/wake system to use. Valid values are: # kernelThe built-in kernel suspend/resume support. # Use this if nothing else is supported on your system. # uswsusp If your system has support for the userspace # suspend programs (s2ram/s2disk/s2both), then use this. # tuxonice If your system has support for tuxonice, use this. # # The system defaults to kernel if this is commented out. SLEEP_MODULE=uswsusp # These variables will be handled specially when we load files in # /etc/pm/config.d. # Multiple declarations of these environment variables will result in # their contents being concatenated instead of being overwritten. # If you need to unload any modules to suspend/resume, add them here. SUSPEND_MODULES=nvidia ehci_hcd ohci_hcd uhci_hcd iwl3945 # If you want to keep hooks from running, add their names here. # HOOK_BLACKLIST= # If you want to unconditionally add parameters to the commandline, # add them here. # ADD_PARAMETERS= # If you want to ignore commandline parameters, add them here. # DROP_PARAMETERS= # If you need to synchronize the system clock across a suspend/resume or # hibernate/thaw cycle, set this variable. # NEED_CLOCK_SYNC=true i get the same as you, the suspend mode hangs my computer, but editing this file i get working all again... Did you read the header of the file? It said DO NOT EDIT THIS FILE! Add files in /etc/pm/config.d/ instead, which is what you should have done. The reason for this is that if you modify the variables here, they will be overwritten when you upgrade pm-utils. So you should just dump a file in /etc/pm/config.d with the line HIBERNATE_MODE=shutdown. -- Regards, Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
Thanks! Chow, how looks your configuration?... you think this file need come with a default settings for works? in my case with the default settings doesn't works... i going to make more test, but i don't undersdtand really how i can use the /etc/pm/config.d refer: http://en.opensuse.org/Pm-utils in this case creating a file called modules or config inside /etc/pm/config.d this would work?... i think the default set for this file need to be with the next modules SUSPEND_MODULES=button ehci_hcd ohci_hcd uhci_hcd iwl3945 HIBERNATE_MODE=shutdown Because the default configuration it's platform, and that does not works... about the modules, if you suspend without this parameters suspend don't works too... still poweron and freeze... What do you think about? all here... what think about this? who have problems or need make this change when installd the system? 2009/5/19 Chow Loong Jin hyper...@gmail.com On Mon, 2009-05-18 at 21:25 +, maximi89 wrote: guys, edit the file of pm-utils /usr/lib/pm-utils/defaults maxim...@maximiliano:/usr/share/emesene$ cat /usr/lib/pm-utils/defaults ## # DO NOT EDIT THIS FILE! # ## # Add files in /etc/pm/config.d/ instead!# ## # Default method to power down the system when hibernating. # If commented out, the system will use the kernel default as a # default value. # # Check /sys/power/disk for valid values. The default value # will be surrounded by [square brackets]. HIBERNATE_MODE=shutdown # Whether we need to post the video card when resuming from # hibernate. You should not normally need to set this. # In the future pm-utils will get this setting from HAL. # # Valid values are no and yes # HIBERNATE_RESUME_POST_VIDEO=no # The default sleep/wake system to use. Valid values are: # kernelThe built-in kernel suspend/resume support. # Use this if nothing else is supported on your system. # uswsusp If your system has support for the userspace # suspend programs (s2ram/s2disk/s2both), then use this. # tuxonice If your system has support for tuxonice, use this. # # The system defaults to kernel if this is commented out. SLEEP_MODULE=uswsusp # These variables will be handled specially when we load files in # /etc/pm/config.d. # Multiple declarations of these environment variables will result in # their contents being concatenated instead of being overwritten. # If you need to unload any modules to suspend/resume, add them here. SUSPEND_MODULES=nvidia ehci_hcd ohci_hcd uhci_hcd iwl3945 # If you want to keep hooks from running, add their names here. # HOOK_BLACKLIST= # If you want to unconditionally add parameters to the commandline, # add them here. # ADD_PARAMETERS= # If you want to ignore commandline parameters, add them here. # DROP_PARAMETERS= # If you need to synchronize the system clock across a suspend/resume or # hibernate/thaw cycle, set this variable. # NEED_CLOCK_SYNC=true i get the same as you, the suspend mode hangs my computer, but editing this file i get working all again... Did you read the header of the file? It said DO NOT EDIT THIS FILE! Add files in /etc/pm/config.d/ instead, which is what you should have done. The reason for this is that if you modify the variables here, they will be overwritten when you upgrade pm-utils. So you should just dump a file in /etc/pm/config.d with the line HIBERNATE_MODE=shutdown. -- Regards, Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a direct subscriber of the bug. -- Maximiliano Augusto Castañón Araneda Santiago, Chile Linux user # 394821 -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Wed, 2009-05-20 at 01:30 +, maximi89 wrote: Thanks! Chow, how looks your configuration?... My configuration is the default. I did not change it. you think this file need come with a default settings for works? in my case with the default settings doesn't works... i going to make more test, but i don't undersdtand really how i can use the /etc/pm/config.d refer: http://en.opensuse.org/Pm-utils Any file in /etc/pm/config.d will be evaluated for configuration variables, which are listed in /usr/lib/pm-utils/defaults. in this case creating a file called modules or config inside /etc/pm/config.d this would work?... i think the default set for this file need to be with the next modules SUSPEND_MODULES=button ehci_hcd ohci_hcd uhci_hcd iwl3945 HIBERNATE_MODE=shutdown Yes, just dump these lins inside a file in /etc/pm/config.d. Any name can be used for the file. Because the default configuration it's platform, and that does not works... about the modules, if you suspend without this parameters suspend don't works too... still poweron and freeze... What do you think about? all here... what think about this? who have problems or need make this change when installd the system? platform is the default because it mean that system-specific optimizations can be done. If disk works for you then use disk, but platform will remain the default, because that's what works for most people. -- Regards, Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
Whoops forgot to read thep previous post. I'll see who I can poke. -- Regards, Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Fri, 2009-04-24 at 23:00 +, japi wrote: @hyperair: Okay... Is there anything we can do to get this fixed sometime? Should we all register at the freedesktop bugtracker and write that this is no hoax? I spent some hours to get this bug fixed for me and you also wrote a debdiff file, so the 'final' bugfix is only a click away. The bug is confirmed (at least here) and assigned (here and there) (to someone who already has attention btw!). I really can't understand why this doesn't get fixed and can't think of anything more i could contribute to get this fixed... (except to confirm the bug over at freedesktop, which seems unnecessary to me) Please help :-( Now that Jaunty's out with a new kernel and GPU driver for Intel, why don't you test with that and see if it works? -- Regards, Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Sun, 2009-03-29 at 13:55 +, japi wrote: But personally i find it a little frustrating, that we already had worked out a solution (inclusive .debdiff provided by Chow Loong Jin - hyperair) and it did not find its way into ubuntu... This is probably because the upstream bug did not get any attention at all. See https://bugs.freedesktop.org/show_bug.cgi?id=18461 -- Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Tue, 2008-11-11 at 13:46 +, vlowther wrote: That is what I am saying -- instead of removing the entire hook, just remove the --quirk-vbe-post lines in the smart_kernel_intel function of the 98smart-kernel-video hook. That will cause the hook to not remove the --quirk-vbe-post quirk if it is passed to pm-utils. What if HAL wrongly reports that a system requires --quirk-vbe-post, when it doesn't? According to vbetool's manpage, it can cause undefined behaviour, whatever that means. -- Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Tue, 2008-11-11 at 01:51 +, hyperair wrote: On Mon, 2008-11-10 at 21:32 +, vlowther wrote: Please don't remove the hook -- just edit it to not remove the quirks specifically needed. I'm a little worried that this will cause regressions on systems where the --quirk-vbe-post is reported wrongly by HAL. Will that be an issue? That is what I am saying -- instead of removing the entire hook, just remove the --quirk-vbe-post lines in the smart_kernel_intel function of the 98smart-kernel-video hook. That will cause the hook to not remove the --quirk-vbe-post quirk if it is passed to pm-utils. -- Chow Loong Jin -- Victor Lowther RHCE# 805008539634727 LPIC-2# LPI000140019 -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Nov 11, 2008, at 8:04 AM, hyperair [EMAIL PROTECTED] wrote: On Tue, 2008-11-11 at 13:46 +, vlowther wrote: That is what I am saying -- instead of removing the entire hook, just remove the --quirk-vbe-post lines in the smart_kernel_intel function of the 98smart-kernel-video hook. That will cause the hook to not remove the --quirk-vbe-post quirk if it is passed to pm-utils. What if HAL wrongly reports that a system requires --quirk-vbe-post, when it doesn't? According to vbetool's manpage, it can cause undefined behaviour, whatever that means. We can fix hal easily enough in that case. -- Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a direct subscriber of the bug. -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Tue, 2008-11-11 at 20:58 +, vlowther wrote: On Nov 11, 2008, at 8:04 AM, hyperair [EMAIL PROTECTED] wrote: On Tue, 2008-11-11 at 13:46 +, vlowther wrote: That is what I am saying -- instead of removing the entire hook, just remove the --quirk-vbe-post lines in the smart_kernel_intel function of the 98smart-kernel-video hook. That will cause the hook to not remove the --quirk-vbe-post quirk if it is passed to pm-utils. What if HAL wrongly reports that a system requires --quirk-vbe-post, when it doesn't? According to vbetool's manpage, it can cause undefined behaviour, whatever that means. We can fix hal easily enough in that case. -- Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a direct subscriber of the bug. Alright, here's a debdiff. -- Chow Loong Jin ** Attachment added: pm-utils_1.1.2.4-1ubuntu9.debdiff http://launchpadlibrarian.net/19582479/pm-utils_1.1.2.4-1ubuntu9.debdiff -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Mon, Nov 10, 2008 at 11:00 AM, Pieter Hintjens [EMAIL PROTECTED] wrote: I replaced the 98smart-kernel-suspend-hook, but can no longer reproduce the original problem. Suspend/resume now works, shutting the lid, using the KDE power manager 'Suspend' option, and also using the pm-suspend command. Correction: pm_suspend --quirk-s3-mode --quirk-s3-bios seems to be sticky. That is, running it once fixed the suspend/resume functionality, even over a reboot. Running pm_suspend with no arguments then caused the backlighting failure to come back. -Pieter -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Mon, 2008-11-10 at 11:49 +, japi wrote: [EMAIL PROTECTED]:~$ lshal | grep quirk power_management.quirk.vbe_post = true (bool) [EMAIL PROTECTED]:~$ lshal | grep system.hardware system.hardware.primary_video.product = 13698 (0x3582) (int) system.hardware.primary_video.vendor = 32902 (0x8086) (int) system.hardware.product = 'SQ30' (string) system.hardware.serial = '123490EN400015' (string) system.hardware.uuid = '604EC084-E01D-B211-8000-AEF914A58E70' (string) system.hardware.vendor = 'Samsung Electronics' (string) system.hardware.version = 'Revision 01' (string) [EMAIL PROTECTED]:~$ sudo s2ram -i This machine can be identified by: sys_vendor = Samsung Electronics sys_product = SQ30 sys_version = Revision 01 bios_version = 01LK I only have a Samsung Q30. Have you noticed, that there are multiple versions of X40 Laptops? Some of them need the s3-bios and s3-mode quirk, others need none of them. (see in /usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-ibm.fdi in the comments on: - line 44 - line 64 (two times) - line 105) The s2ram whitelist also has multiple entries on the x40. Probably this contributes to the bug. Multiple version of X40 Laptops? That explains it. Either way it looks like a bug in both hal-info and pm-utils. hal-info doesn't pass --quirk-s3-bios and --quirk-s3-mode for Pieter's machine, and pm-utils removes --quirk-vbe-post on yours. -- Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Mon, Nov 10, 2008 at 12:14 PM, hyperair [EMAIL PROTECTED] wrote: You can't not have pm-utils. That's where pm-suspend is. You're right, the package is installed, but I have no idea how to see what version it is. pm-utils is not a command and pm-suspend -v does a suspend... :-) Here is the grep of system.hardware: [EMAIL PROTECTED]:/usr/lib/pm-utils/sleep.d# lshal | grep system.hardware system.hardware.primary_video.product = 13698 (0x3582) (int) system.hardware.primary_video.vendor = 32902 (0x8086) (int) system.hardware.product = '2372GHG' (string) system.hardware.serial = '99DT676' (string) system.hardware.uuid = '3C711681-4793-11CB-AC6D-FB1692D47557' (string) system.hardware.vendor = 'IBM' (string) system.hardware.version = 'ThinkPad X40' (string) [EMAIL PROTECTED]:/usr/lib/pm-utils/sleep.d# -Pieter -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Mon, Nov 10, 2008 at 6:20 AM, hyperair [EMAIL PROTECTED] wrote: Anyway, could you post the output of this command? lshal | grep quirk Empty: no quirk in the lshal output. Also, coud you try sticking back the /usr/lib/pm-utils/sleep.d/98smart-kernel-suspend hook and trying this: pm-suspend --quirk-s3-mode --quirk-s3-bios I replaced the 98smart-kernel-suspend-hook, but can no longer reproduce the original problem. Suspend/resume now works, shutting the lid, using the KDE power manager 'Suspend' option, and also using the pm-suspend command. -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Mon, 2008-11-10 at 10:49 +, Pieter Hintjens wrote: On Mon, Nov 10, 2008 at 11:08 AM, hyperair [EMAIL PROTECTED] wrote: Heh, that's strange, what did you change besides removing the hook? What's your version of pm-utils and uswsusp? I installed and then removed uswsusp, before removing the hook. Don't have either of pm-utils or uswsusp installed. Fwiw, I get this behaviour reproducibly: - reboot, then run pm_suspend - backlight failure on resume - run pm_suspend with quirks - correct resume - run pm_suspend without quirks again - correct resume -Pieter You can't not have pm-utils. That's where pm-suspend is. Anyway, regarding no quirks in lshal, this is an interesting development. What this means is that the bug does not lie in pm-utils. It lies in hal-info. However, for the moment, I'll leave the pm-utils bug open, because it seems like the Samsung Q30 or something is affected as well. @japi: Could you post the output of lshal | grep quirk on both your systems? affects ubuntu/hal-info -- Chow Loong Jin ** Also affects: hal-info (Ubuntu) Importance: Undecided Status: New -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Mon, 2008-11-10 at 14:21 +, Pieter Hintjens wrote: You're right, the package is installed, but I have no idea how to see what version it is. pm-utils is not a command and pm-suspend -v does a suspend... :-) apt-cache policy pm-utils -- Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Mon, Nov 10, 2008 at 6:39 PM, hyperair [EMAIL PROTECTED] wrote: apt-cache policy pm-utils [EMAIL PROTECTED]:~$ apt-cache policy pm-utils pm-utils: Installed: 1.1.2.4-1ubuntu7 Candidate: 1.1.2.4-1ubuntu7 Version table: *** 1.1.2.4-1ubuntu7 0 500 http://be.archive.ubuntu.com intrepid/main Packages 100 /var/lib/dpkg/status [EMAIL PROTECTED]:~$ lshal | egrep firmware system.firmware.release_date = '01/07/2005' (string) system.firmware.vendor = 'IBM' (string) system.firmware.version = '1UETA5WW (1.55 )' (string) -Pieter -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Mon, 2008-11-10 at 10:00 +, Pieter Hintjens wrote: On Mon, Nov 10, 2008 at 6:20 AM, hyperair [EMAIL PROTECTED] wrote: Anyway, could you post the output of this command? lshal | grep quirk Empty: no quirk in the lshal output. Also, coud you try sticking back the /usr/lib/pm-utils/sleep.d/98smart-kernel-suspend hook and trying this: pm-suspend --quirk-s3-mode --quirk-s3-bios I replaced the 98smart-kernel-suspend-hook, but can no longer reproduce the original problem. Suspend/resume now works, shutting the lid, using the KDE power manager 'Suspend' option, and also using the pm-suspend command. Heh, that's strange, what did you change besides removing the hook? What's your version of pm-utils and uswsusp? -- Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Mon, Nov 10, 2008 at 11:08 AM, hyperair [EMAIL PROTECTED] wrote: Heh, that's strange, what did you change besides removing the hook? What's your version of pm-utils and uswsusp? I installed and then removed uswsusp, before removing the hook. Don't have either of pm-utils or uswsusp installed. Fwiw, I get this behaviour reproducibly: - reboot, then run pm_suspend - backlight failure on resume - run pm_suspend with quirks - correct resume - run pm_suspend without quirks again - correct resume -Pieter -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
Oh I forgot to mention... everyone, please post the output of lshal | grep system.hardware -- Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Sun, 2008-11-09 at 23:18 +, hyperair wrote: On Sun, 2008-11-09 at 22:52 +, Pieter Hintjens wrote: Hyperair, could you summarize what I need to do on my thinkpad x40 in order to test this fix? Delete /usr/lib/pm-utils/sleep.d/98smart-kernel-video. It's not a fix but a temporary workaround. Please don't remove the hook -- just edit it to not remove the quirks specifically needed. Either way the problem now is to make this an official fix in the pm-utils package, while not causing regressions to those not affected by the bug. What's your GPU, by the way? -- Chow Loong Jin -- Victor Lowther RHCE# 805008539634727 LPIC-2# LPI000140019 -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Sun, 2008-11-09 at 23:18 +, japi wrote: Hm.. I don't get it... Why does 98smart-kernel-video remove these quirks which are known to work? (My laptop for example: it is listed in /usr/share/hal/fdi/information/10freedesktop/20-video-quirk-pm-samsung.fdi with the right quirk, vbe-post. The ibm x40 can be found in 20-video-quirk-pm-ibm.fdi... But regardless of that the quirks seem to be removed.) Am I mixing things up? Because the i915 DRM driver in 2.6.27 should not require any quirks but the s3 ones. You can edit the 98smart-kernel-video hook to have it not remove --quirk-vbe-post for Intel graphics if that helps on your system. Thanks, Jan -- Victor Lowther RHCE# 805008539634727 LPIC-2# LPI000140019 -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Sun, 2008-11-09 at 12:02 +, japi wrote: I have no /var/run/video.rom and couldn't find a file with that name anywhere in the system. But why doesn't s2ram need that file? That is only needed if you are using a g80 or later nVidia GPU. Intel GPUS can be posted from the regualr BIOS normally. One thing I'd like to mention is that you don't have to force Ubuntu to use s2ram, it's a choice that's made here: /etc/pm/config.d/00sleep_module. Uncomment the SUSPEND_MODULE line and set it to uswsusp. I have already tried that. First problem here is, that uswsusp has no s2ram in ubuntu anymore. So switching to uswsusp as suspend_module has no real effect. I bypassed this problem by installing the debian uswsusp with s2ram. But there is a second problem: The setting there seems to be ignored anyway, because still everything runs over /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux in the end. And there is a nice comment stating: # We only support pm-utils, which seems to be true. Changing the line /usr/sbin/pm-suspend $QUIRKS into /usr/sbin/s2ram --force --vbe_post works nicely for me. -- Victor Lowther RHCE# 805008539634727 LPIC-2# LPI000140019 -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Mon, 2008-11-10 at 21:32 +, vlowther wrote: Please don't remove the hook -- just edit it to not remove the quirks specifically needed. I'm a little worried that this will cause regressions on systems where the --quirk-vbe-post is reported wrongly by HAL. Will that be an issue? -- Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Sun, 2008-11-09 at 12:02 +, japi wrote: I have no /var/run/video.rom and couldn't find a file with that name anywhere in the system. But why doesn't s2ram need that file? One thing I'd like to mention is that you don't have to force Ubuntu to use s2ram, it's a choice that's made here: /etc/pm/config.d/00sleep_module. Uncomment the SUSPEND_MODULE line and set it to uswsusp. I have already tried that. First problem here is, that uswsusp has no s2ram in ubuntu anymore. So switching to uswsusp as suspend_module has no real effect. I bypassed this problem by installing the debian uswsusp with s2ram. But there is a second problem: The setting there seems to be ignored anyway, because still everything runs over /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux in the end. And there is a nice comment stating: # We only support pm-utils, which seems to be true. Changing the line /usr/sbin/pm-suspend $QUIRKS into /usr/sbin/s2ram --force --vbe_post works nicely for me. Sorry, I forgot you need pm-utils 1.1.2.4-1ubuntu8 from intrepid-proposed for that to have effect. Please test. pm-suspend has a few backends that it uses, which are tuxonice, kernel, and uswsusp. If uswsusp is selected, as of ubuntu8, it'll use s2ram if found, otherwise it'll use the kernel backend for suspend and s2disk for hibernate. So yeah HAL supports only pm-utils, but pm-utils supports uswsusp, kernel, and tuxonice. Don't bypass it. -- Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
Another thing I forgot to mention... if you can ssh into the computer, try this command: sudo vbetool post This is the pm-utils vbe-post quirk. If it doesn't work, something is wrong with vbetool, and the bug should be marked as affecting vbetool. -- Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Sun, 2008-11-09 at 14:10 +, japi wrote: sudo vbetool post does work. (i can switch to tty1 and type the command, which then switches my backlight on) I have now switched to pm-utils 1.1.2.4-1ubuntu8, but still sudo pm-suspend --quirk-vbe-post has no effect. (i have tried it with suspend_module=uswsusp and kernel in /etc/pm/config.d/00sleep_module) It has to be in caps. One line that looks like this: SUSPEND_MODULE=uswsusp Could you post your /var/log/pm-suspend.log after each test case (running pm-suspend with uswsusp and kernel)? -- Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Sun, 2008-11-09 at 14:53 +, japi wrote: Okay, sorry for that, i meant SLEEP_MODULE=uswsusp. Just to be sure i have used SLEEP_MODULE and SUSPEND_MODULE for the following tests :-) : Here is my logfile for SLEEP_MODULE=kernel: http://www.ziqu.de/launchpad/pm-suspend.log_kernel.txt and here for SLEEP_MODULE=uswsusp: http://www.ziqu.de/launchpad/pm-suspend.log_uswsusp.txt (also attached here as tarfile) ** Attachment added: logfiles_pm-suspend.tar http://launchpadlibrarian.net/19511716/logfiles_pm-suspend.tar Out of curiosity, what's in /etc/pm/sleep.d/config? Not that it'll change anything, since it's not working, as shown by the lines in pm-suspend.log Also, sorry, I meant SLEEP_MODULE. You can remove the SUSPEND_MODULE line. It seems that the tty is switched to TTY1 in the case of uswsusp, but not in the case of kernel. Could you test if running pm-suspend --quirk-vbe-post from TTY1 works? With SLEEP_MODULE=kernel I mean. Thanks for your help. -- Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Sun, 2008-11-09 at 16:59 +, japi wrote: I just noticed, that s2ram does that switch to vt1 and back. I think that s2ram is run (if using uswsusp module), just not with the --vbe_post option (although pm-suspend is run with --quirk-vbe-post). Okay, could you check if there's a file /var/run/pm-utils/storage/parameters.rm ? If there is, please post it here. -- Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Sun, 2008-11-09 at 22:52 +, Pieter Hintjens wrote: Hyperair, could you summarize what I need to do on my thinkpad x40 in order to test this fix? Delete /usr/lib/pm-utils/sleep.d/98smart-kernel-video. It's not a fix but a temporary workaround. Either way the problem now is to make this an official fix in the pm-utils package, while not causing regressions to those not affected by the bug. What's your GPU, by the way? -- Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Sun, 2008-11-09 at 23:38 +, Pieter Hintjens wrote: On Mon, Nov 10, 2008 at 12:18 AM, hyperair [EMAIL PROTECTED] wrote: Delete /usr/lib/pm-utils/sleep.d/98smart-kernel-video. It's not a fix but a temporary workaround. Either way the problem now is to make this an official fix in the pm-utils package, while not causing regressions to those not affected by the bug. What's your GPU, by the way? lspci reports VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02) I can confirm the workaround: after deleting the 98smart-kernel-video file, resume now works properly. This is really great. Thanks! Do you think this might be related to https://bugs.launchpad.net/ubuntu/+bug/294640? Cheers, Pieter Other than that it's the same hardware, and same driver, no not related. Anyway, could you post the output of this command? lshal | grep quirk Also, coud you try sticking back the /usr/lib/pm-utils/sleep.d/98smart-kernel-suspend hook and trying this: pm-suspend --quirk-s3-mode --quirk-s3-bios More information: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487278 -- Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Sun, 2008-11-09 at 18:11 +, japi wrote: lspci -nn|grep VGA 00:02.0 VGA compatible controller [0300]: Intel Corporation 82852/855GM Integrated Graphics Device [8086:3582] (rev 02) sudo s2ram -i This machine can be identified by: sys_vendor = Samsung Electronics sys_product = SQ30 sys_version = Revision 01 bios_version = 01LK I don't have a 98smart-kernel-video at /usr/lib/pm-utils/ but have one in /usr/lib/pm-utils/sleep.d , so i removed that. Great news: sudo pm-suspend --quirk-vbe-post now works! (in every case: - from tty1 with kernel - from X with kernel - from tty1 with uswsusp - from X with uswsusp) :-) Even the gnome power manager / suspend buttons of the laptop work now :-) Thank you! Awesome. Okay, now to get the packaging part... we need to make an exception for your Thinkpad series. Right now, the check used is.. if /sys/module/i915 is present, and kernel version = 2.6.26. We need to find a way to exclude all affected users, before a patch for this can be rolled out to Intrepid. I don't know how, though. Perhaps the original author of this particular file would know? subscribe victor-lowther -- Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Sun, 2008-11-09 at 17:29 +, japi wrote: Yes, there is a file with the content: --quirk-dpms-on --quirk-dpms-suspend --quirk-vbe-post --quirk-vbe-post --quirk-vga-mode3 --quirk-vbemode-restore --quirk-vbestate-restore --quirk-reset-brightness --quirk-radeon-off Okay, now try removing /usr/lib/pm-utils/98smart-kernel-video. Back it up somewhere first so you can restore it if necessary. Then try again (both with uswsusp and kernel). By the way, what's your GPU? (lspci -nn|grep VGA) -- Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Mon, Nov 10, 2008 at 12:18 AM, hyperair [EMAIL PROTECTED] wrote: Delete /usr/lib/pm-utils/sleep.d/98smart-kernel-video. It's not a fix but a temporary workaround. Either way the problem now is to make this an official fix in the pm-utils package, while not causing regressions to those not affected by the bug. What's your GPU, by the way? lspci reports VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02) I can confirm the workaround: after deleting the 98smart-kernel-video file, resume now works properly. This is really great. Thanks! Do you think this might be related to https://bugs.launchpad.net/ubuntu/+bug/294640? Cheers, Pieter -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
On Sun, 2008-11-09 at 00:18 +, japi wrote: pm-suspend --quirk-vbe-post has no effect. (or all quirks (/ hal fdi files) are ignored since intrepid) ** Changed in: pm-utils (Ubuntu) Sourcepackagename: None = pm-utils vbe_post() { local rom=/var/run/video.rom # if we do not have a romfile, do not post with it. [ -f $rom ] || unset rom vbe post $rom sleep 0.1 } It seems that this is run upon resume if you call pm-suspend --quirk-vbe-post. Do you have a file /var/run/video.rom? -- Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 292256] Re: backlight failed after suspend to ram on IBM X40
One thing I'd like to mention is that you don't have to force Ubuntu to use s2ram, it's a choice that's made here: /etc/pm/config.d/00sleep_module. Uncomment the SUSPEND_MODULE line and set it to uswsusp. -- Chow Loong Jin -- backlight failed after suspend to ram on IBM X40 https://bugs.launchpad.net/bugs/292256 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs