Openmoko Bug #2209: alsactl restore wakes up X

Openmoko Public Trac bugs at docs.openmoko.org
Tue Jan 13 12:18:42 CET 2009


#2209: alsactl restore wakes up X
-----------------------------+----------------------------------------------
 Reporter:  lindi            |          Owner:  openmoko-kernel
     Type:  defect           |         Status:  new            
 Priority:  normal           |      Milestone:                 
Component:  System Software  |        Version:                 
 Severity:  normal           |       Keywords:                 
 Haspatch:  0                |      Blockedby:                 
Estimated:                   |    Patchreview:                 
 Blocking:                   |   Reproducible:                 
-----------------------------+----------------------------------------------
 {{{
 Steps to reproduce:
 1) alsactl -f stereout.state restore
 2) xset s 10 5
 3) wait for X to turn display off
 4) alsactl -f gsmhandset.state restore

 Expected results:
 4) alsactl changes sound configuration but does not affect display

 Actual results:
 4) display is turned on

 More info:
 1) strace shows that xserver-xglamo reads one byte from fd 0
    (/dev/tty2) when alsactl is ran:

 13:09:39.424700 gettimeofday({1231844979, 425590}, NULL) = 0
 13:09:39.427042 --- SIGALRM (Alarm clock) @ 0 (0) ---
 13:09:39.429421 --- SIGIO (I/O possible) @ 0 (0) ---
 13:09:39.430684 read(0, "w"..., 256)    = 1
 13:09:39.435815 gettimeofday({1231844979, 436702}, NULL) = 0
 13:09:39.438910 read(0, 0x3ff28a0, 256) = -1 EAGAIN (Resource temporarily
 unavailable)
 13:09:39.441274 read(5, 0x13c5a4, 256)  = -1 EAGAIN (Resource temporarily
 unavailable)
 13:09:39.445092 ioctl(6, EVIOCGVERSION, 0x3ff28b4) = 0
 13:09:39.448269 ioctl(6, 0x80204520, 0x3ff28b0) = 4
 13:09:39.450572 ioctl(6, 0x80404523, 0x3ff28a8) = 8

 2) Switching to gsmhandset.state seems to always write "w" and
    switching to stereout.state seems to write "\367". Any idea where
    these values come from?

 }}}

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/2209>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac


More information about the buglog mailing list