Re: Sleep on TiBook, getting Gnome sounds working

2001-07-11 Thread Michael Schmitz
> >Thanks. BTW /proc/apm is broken on my Lombard (returns -1 for both > >timeleft and percentage), I'll look into that soonish. > > That's weird. Make sure you get the latest tree. Also, does I used your tree rsynced two days ago. > proc/pmu/battery_0 (or _1) says anything relevant ? [EMAIL PR

Re: Sleep on TiBook, getting Gnome sounds working

2001-07-11 Thread Benjamin Herrenschmidt
>> The param points to an u32 that will be set to 0 or 1 (or the ioctl >> will return an error if not implemented). > >Thanks. BTW /proc/apm is broken on my Lombard (returns -1 for both >timeleft and percentage), I'll look into that soonish. That's weird. Make sure you get the latest tree. Also, d

Re: Sleep on TiBook, getting Gnome sounds working

2001-07-11 Thread Michael Schmitz
On Tue, 10 Jul 2001, Benjamin Herrenschmidt wrote: > #define PMU_IOC_CAN_SLEEP _IOR('B',5,sizeof(__u32 *)) > > The param points to an u32 that will be set to 0 or 1 (or the ioctl > will return an error if not implemented). Thanks. BTW /proc/apm is broken on my Lombard (returns -1 for both time

Re: Sleep on TiBook, getting Gnome sounds working

2001-07-10 Thread ozymandias G desiderata
On Tue, Jul 10, 2001 at 11:15:27AM +, Rob Andrews wrote: > [ozymandias G desiderata wrote in newsgate.debian.powerpc] > > On another note, I've got sound mostly working on my system. I get > > that weird atonal beep from my system after I modprobe dmasound_pmac > > (which I have aliased to s

Re: sleep with TiPB on 2.4.6 broken Re: Sleep on TiBook, getting Gnome sounds working

2001-07-10 Thread Benjamin Herrenschmidt
> >close lid within console - TiPB goes to sleep and LED is off - TiPB only >comes back with hard-reset (ctrl-apple-power) > >with the 2.4.6 kernel (without thermal management) it is the same like >with 2.4.4 and closing the lid within console. It doesn´t matter if i´m >in console or X the TiPB nev

Re: Sleep on TiBook, getting Gnome sounds working

2001-07-10 Thread Benjamin Herrenschmidt
>> This should be fixed in pmud. The PMU driver now supports an ioctl telling >> you if sleep is supported or not on the machine. If the ioctl is >> not implemented, you get an error and can revert to the old mecanism. #define PMU_IOC_CAN_SLEEP _IOR('B',5,sizeof(__u32 *)) The param points to

Re: Sleep on TiBook, getting Gnome sounds working

2001-07-10 Thread Michael Schmitz
> >To make the behaviour consistent? The default for PMU_VERSION_KEYLARGO > >is SIGPWR, for everything else is snooze. > > > >The justification for this as given by the comments in the code is > >incidentally somewhat different to the behaviour it produces. > > > >/* HACK: shut the machine dow

sleep with TiPB on 2.4.6 broken Re: Sleep on TiBook, getting Gnome sounds working

2001-07-10 Thread Christoph Ewering
Hello Benjamin! Just did a quick test with my TiPB and a 2.4.4 and the current 2.4.6 (both rsync from your source). 2.4.4 (Contour Mouse and ISDN-modem pluged into USB): close lid within X - TiPB goes to sleep and LED pulses - open lid and everything is o.k. close lid within console - TiPB goes

Re: Sleep on TiBook, getting Gnome sounds working

2001-07-10 Thread Benjamin Herrenschmidt
> >To make the behaviour consistent? The default for PMU_VERSION_KEYLARGO >is SIGPWR, for everything else is snooze. > >The justification for this as given by the comments in the code is >incidentally somewhat different to the behaviour it produces. > >/* HACK: shut the machine down when lid i

Re: Sleep on TiBook, getting Gnome sounds working

2001-07-10 Thread Rob Andrews
[ozymandias G desiderata wrote in newsgate.debian.powerpc] > On another note, I've got sound mostly working on my system. I get > that weird atonal beep from my system after I modprobe dmasound_pmac > (which I have aliased to sound like a good boy, but nothing seems to > notice and/or care exce

Re: Sleep on TiBook, getting Gnome sounds working

2001-07-10 Thread Michael Schmitz
> I've > > 1) created the apm_bios node in /dev > 2) modprobe'd apm_emu, and > 3) I've got apmd and apm-sleep installed. > > Yet, sadly, I cannot get the system to go to sleep, nor can I get any Use pmud. Remove the shutdown command from the sleep section of the Core99 function in pwrctl and

Re: Sleep on TiBook, getting Gnome sounds working

2001-07-10 Thread Brendan O'Dea
On Tue, Jul 10, 2001 at 09:49:01AM +0200, Michel Dänzer wrote: >Brendan O'Dea wrote: >> The current version of pmud defaults to -s on architectures where sleep >> is not supported. If snooze does ever end up working properly on the >> tibook this may need to be changed. > >What influence would tha

Re: Sleep on TiBook, getting Gnome sounds working

2001-07-10 Thread Michel Dänzer
Brendan O'Dea wrote: > > On Tue, Jul 10, 2001 at 09:32:39AM +0200, Michel Dänzer wrote: > >Brendan O'Dea wrote: > >> There is an example powerfail script in /usr/share/doc/pmud/examples. > > > >And make sure that the pmud options in /etc/default/power contain -s . > > The current version of pmud

Re: Sleep on TiBook, getting Gnome sounds working

2001-07-10 Thread Brendan O'Dea
On Tue, Jul 10, 2001 at 09:32:39AM +0200, Michel Dänzer wrote: >Brendan O'Dea wrote: >> There is an example powerfail script in /usr/share/doc/pmud/examples. > >And make sure that the pmud options in /etc/default/power contain -s . The current version of pmud defaults to -s on architectures where

Re: Sleep on TiBook, getting Gnome sounds working

2001-07-10 Thread Michel Dänzer
Brendan O'Dea wrote: > > On Tue, Jul 10, 2001 at 01:19:49PM +1000, I wrote: > >On Mon, Jul 09, 2001 at 05:29:55PM -0700, ozymandias G desiderata wrote: > >>[...] However, it is very sad-making when my system keels over > >>dead with no warning because its battery has run dry. [...] > > > >pmud doe

Re: Sleep on TiBook, getting Gnome sounds working

2001-07-10 Thread Ethan Benson
On Tue, Jul 10, 2001 at 01:19:49PM +1000, Brendan O'Dea wrote: > > xmessage will require at least $DISPLAY, and almost certainly > $XAUTHORITY to be set for that to work. The latter is somewhat tricky, > since X may be started in many ways although this *may* work if you use > xdm: > > XAUTHOR

Re: Sleep on TiBook, getting Gnome sounds working

2001-07-09 Thread Brendan O'Dea
On Tue, Jul 10, 2001 at 01:19:49PM +1000, I wrote: >On Mon, Jul 09, 2001 at 05:29:55PM -0700, ozymandias G desiderata wrote: >>[...] However, it is very sad-making when my system keels over >>dead with no warning because its battery has run dry. [...] > >pmud does attempt to issue a warning [...]

Re: Sleep on TiBook, getting Gnome sounds working

2001-07-09 Thread Brendan O'Dea
On Mon, Jul 09, 2001 at 05:29:55PM -0700, ozymandias G desiderata wrote: >I'm running sid on my TiBook with vmlinux-2.4.6benh20010705 as my >kernel. Overall, I'm pretty psyched with how well everything works -- >my system is noticeably peppier under Linux than it is under even >MacOS 9.1. However,

Re: Sleep on TiBook, getting Gnome sounds working

2001-07-09 Thread Chad Miller
On Mon, Jul 09, 2001 at 05:29:55PM -0700, ozymandias G desiderata wrote: > I've > > 1) created the apm_bios node in /dev > 2) modprobe'd apm_emu, and > 3) I've got apmd and apm-sleep installed. > > Yet, sadly, I cannot get the system to go to sleep, nor can I get any > battery monitors to t

Re: Sleep on TiBook, getting Gnome sounds working

2001-07-09 Thread Colin Walters
[EMAIL PROTECTED] (ozymandias G desiderata) writes: > I'm running sid on my TiBook with vmlinux-2.4.6benh20010705 as my > kernel. Overall, I'm pretty psyched with how well everything works One of my friends (a math guy) who has a passing familiarity with systems like GNU/Linux, upon seeing my TiB

Sleep on TiBook, getting Gnome sounds working

2001-07-09 Thread ozymandias G desiderata
Hey, all. I'm running sid on my TiBook with vmlinux-2.4.6benh20010705 as my kernel. Overall, I'm pretty psyched with how well everything works -- my system is noticeably peppier under Linux than it is under even MacOS 9.1. However, it is very sad-making when my system keels over dead with no warn