Author Topic: Problems With 'apm -s' And Xwindows  (Read 2550 times)

danr

  • Full Member
  • ***
  • Posts: 138
    • View Profile
    • http://
Problems With 'apm -s' And Xwindows
« on: July 17, 2006, 09:05:31 am »
Has anyone else had any problems executing 'apm -s' from X?  I have found that when I do this, upon wakeup X runs really slowly, and I get a load of errors about timeouts with read and write pointers.  If I use the suspend button, I have no problems.  Similarly, running 'apm -s' from the console wakes up with no problems.

So it appears that pressing the suspend button does something more than just call apm.x, and this extra behaviour prevents the X problem from occurring.  Does anyone know anything about this?  Does it do something with the framebuffer?

I'd like to get this working so that I can control automatic suspends if I wakeup the Z in the night to do some night-time processing!

I'm running RC12 on an SL-860.

Dan
SL-C860 running Debian EABI on top of Angstrom 2.6 kernel

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Problems With 'apm -s' And Xwindows
« Reply #1 on: July 17, 2006, 10:19:56 am »
'xset dpms force off' ?
SLC-860 cacko / senao wifi

danr

  • Full Member
  • ***
  • Posts: 138
    • View Profile
    • http://
Problems With 'apm -s' And Xwindows
« Reply #2 on: July 17, 2006, 10:30:47 am »
Quote
'xset dpms force off' ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135391\"][{POST_SNAPBACK}][/a][/div]

That does the trick  - I never knew that X has its own power management.  I'm still curious to know why the power off button works both for console and X, however.

Dan
SL-C860 running Debian EABI on top of Angstrom 2.6 kernel

karlto

  • Sr. Member
  • ****
  • Posts: 343
    • View Profile
    • http://
Problems With 'apm -s' And Xwindows
« Reply #3 on: July 17, 2006, 04:08:01 pm »
I think I recall reading about this problem in an earlier thread, and the solution above from pgas was the answer there too.

All the apm stuff is actually in the kernel, so I guess the userland programs are just interfacing with that, rather than apm and xset actually doing any power management. I would presume that pressing the power button would also shortcut straight to the kernel apm...
SL6000-L, RC12