Skip to contentSkip to conversation

special adb buttons don't survive sleep

DISCUSSION Bastien Nocera 3 participants 3 messages Aug 1, 2001 – Aug 2, 2001

lore
Share & tools
lore
#0 lore raw

Hi,

Joseph's code for the special adb buttons doesn't survive sleep, the event device just isn't present anymore when coming back from sleep. All the other event devices are present (/dev/input/eventX).

Franz, any tips ?

Cheers

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 3 lines · On Wed, 01 Aug 2001 23:23:35 +0100 Bastien Nocera <[email protected]> wrote:

Joseph's code for the special adb buttons doesn't survive sleep, the event device just isn't present anymore when coming back from sleep. All the other event devices are present (/dev/input/eventX).

One of my patches attempts to fix this. Upon wakeup, all adb input devices are deregistered, probed, and registered. Any device that is open at the time is left safely dangling when deregistered, and if still open upon a register, skipped over. so if device 2 of 0,1,2,3 is open, post sleep, 2 will be 3, and 3 will be 4 (0,1,_,3,4).

My modification changes it so it re-registers devices when found and are different, registers if new, and lastly, deregisters anything that was there, but wasn't found in the probe. All still existing hardware is re-inited, but their NIL hooks are untouched. I don't know if its safe though. Recently, my keyboard has been vanishing. X runs fine, but need to login to do anything. last I tried, a panic right after unmounting fs's. but I'm using XF4.1, which still seems to have issues with my ati ever since the silken cursor was added. (OT)

It still seems like the best idea. Better than telling the daemon something happened. Sleep really shouldn't be in a keyboard event handler's vocabulary imo.

Franz might know of any pitfalls in my method.

--
Joseph P. Garcia
http://www.lycestra.com/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#2 lore raw

POS 2.4G card

In reply to Bastien Nocera

Hi, I am new to this list.

now i am porting the driver for 2.4G POS PCI cards to linuxppc. and succeeded!

but i will never be able to see the max transmisson performance as the developing environment is on the PowerMacintosh 8500/150 ;-( (kernel 2.2.17 Vinelinux2.1CR)

actually the output of netperf test is about 180Mbps while it could be 2.3Gbps on Intel/Linux driver.

so i made up my mind to buy the fastest machine to test the max performance on linuxppc.

and, I have a simple question. I think new Apple G4 is the fastest machine, having
some troubles about Geforce video cards for booting linuxppc. then, Can I take the story below for boot linuxppc on Apple new G4?

1) put yaboot files in System folder , using Geforce. and shutdown.
2) change the video card to supported video cards in
(http://linuxppc.org/hardware/videocards/index.php3?css_ok=1)
3) then boot linuxppc install cd.

Is it Okay??

I think it's great to realize the 2.4G transmission on PowerMac(linuxppc)!!

kenji in japan.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/