Re: Sleep on TiBook, getting Gnome sounds working
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, 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, although /etc/power/pwrctl is broken in this respect as neither of the attempts in do_warn() succeed: function do_warn() { local msg="Low battery, system will go down..." ( /usr/X11R6/bin/xmessage -center -timeout 15 "$msg" || \ /usr/bin/wall "$msg" ) & } 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: XAUTHORITY=/var/lib/xdm/authdir/authfiles/* \ DISPLAY=:0.0 /usr/X11R6/bin/xmessage -center -timout 15 "$msg" wall requires the message in a file (possibly stdin) rather than as an argument: echo "$msg" | /usr/bin/wall >Yet, sadly, I cannot get the system to go to sleep, nor can I get any >battery monitors to tell me anything useful about the system's battery >state. [...] Sleep seems to be broken right now. As far as battery monitors go, Batmon works. Regards, -- Brendan O'Deabod@compusol.com.au Compusol Pty. Limited (NSW, Australia) +61 2 9810 3633
Re: Sleep on TiBook, getting Gnome sounds working
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 [...] I forgot to add, if you want it to actually perform some action when power gets low/restored you need to install a /etc/init.d/powerfail script (called by init when pmud signals it with SIGPWR). There is an example powerfail script in /usr/share/doc/pmud/examples. Regards, -- Brendan O'Deabod@compusol.com.au Compusol Pty. Limited (NSW, Australia) +61 2 9810 3633
Re: Sleep on TiBook, getting Gnome sounds working
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 sleep is not supported. If snooze does ever end up working properly on the tibook this may need to be changed. Regards, -- Brendan O'Deabod@compusol.com.au Compusol Pty. Limited (NSW, Australia) +61 2 9810 3633
Re: Sleep on TiBook, getting Gnome sounds working
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 that have? If the battery level is critical, you want it >to shut down, not sleep, or it will die the same way as running. *shrug* 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 is closed */ It doesn't, closing the lid will still attempt to cause the machine to snooze (unless pre-empted by a shutdown as the default pwrctl script attempts to do). Regards, -- Brendan O'Deabod@compusol.com.au Compusol Pty. Limited (NSW, Australia) +61 2 9810 3633
Re: Q about filing a bug report
On Tue, Jul 10, 2001 at 10:52:51PM -0400, Russell Hires wrote: >I've been playing around in woody for a while now, and I ran into a strange >problem dealing with my cdrom device: I just went through a lot of >strangeness (and without the help of Phil Frost I'd still be out there) in >trying to figure out why my cdrom wouldn't work. It was because the >permissions weren't right. It was also because there was no link | device >called /dev/cdrom to start off with. I don't understand that. A lot of this is covered in the CDROM-HOWTO (install the doc-linux-text or doc-linux-html package). One way to handle the permission issue is to change the group of the cdrom device to "cdrom" and add yourself to this group. The reason that IDE devices are group "disk" by default is because that is the safest choice given that they may in fact be disks. It is a bit easier for SCSI devices, as different device names are used for disks and cds, so the /dev/scd* are already set to group "cdrom", as are the old proprietary interfaces like /dev/sonycd. You still of course need to add yourself to the cdrom group. As far as the /dev/cdrom link goes, it's a bit tricky to set that up automatically, especially if the cdrom driver is a module. The cdtool package will set up this link as part of the installation, but that process is pretty basic and requires that you already know which device to use. >Should I file a bug report about this? Or is this the correct "feature not >bug" behavior? If the application you were using just failed silently rather than reporting something like "/dev/cdrom: no such file or directory", then you should perhaps file a bug on that package. Note that some gui applications send such diagnostics to stderr, which may be redirected to somewhere like ~/.xsession-errors . Regards, -- Brendan O'Deabod@compusol.com.au Compusol Pty. Limited (NSW, Australia) +61 2 9810 3633
Re: audio CDs don't work under 2.4.7-pre6benh20010717 on TiBook
On Thu, Jul 19, 2001 at 01:49:30PM -0700, ozymandias G desiderata wrote: >Has anyone gotten an audio CD to play back under a recent kernel on >the TiBook? cdplay returns 'nodisc', even though I can hear the >DVD-ROM drive begin to spin up, and eject works. Is audio CD playback >just plain broken at the moment? If so, I'll stop worrying about it. I was unable to get cd audio working with the ide-cd driver, although ide-scsi + sr_mod works (append hdc=scsi). Note however that the drive doesn't appear to have a direct connection to the sound card, so you need to use something like xmms-cdread. Regards, -- Brendan O'Deabod@compusol.com.au Compusol Pty. Limited (NSW, Australia) +61 2 9810 3633
Re: BenH TiBook kernels @ debian.jones.dk
On Sun, Jul 22, 2001 at 06:53:23PM +0200, Benjamin Herrenschmidt wrote: >> - CD sound output >>This last thing (CD playback) was the reason I stumbled across the latest >>thread: Some months ago there was discussion about this: There's no analog >>output on the TiBook internal cdrom, and some guy described a workaround >>involving ide-scsi. If anyone have solved the issue of playing CD's on the >>TiBook please speak up (and Cc me), then I'll add that to the stuff at >>debian.jones.dk... > >I don't think ide-scsi is needed, my understanding is that the normal IDE >CD driver supports all the necessary calls for that. I experimented with both recently, using your tree. The xmms-cdread plugin doesn't work with ide-cd, but does with ide-scsi+sr_mod. Regards, -- Brendan O'Deabod@compusol.com.au Compusol Pty. Limited (NSW, Australia) +61 2 9810 3633
/proc/apm (Was: lazy saturday notebook comparo (long))
On Mon, Aug 20, 2001 at 02:55:49PM +0100, Bastien Nocera wrote: >Talking of which, would a libapm for ppc which supports both /proc/apm >(or proc/pmu whichever) and the use of pmud to read battery stats be >interesting for people on this list ? >Any thoughts ? It may be worth noting that Ben's kernel has a CONFIG_PMAC_APM_EMU option which provides /proc/apm. Regards, -- Brendan O'Deabod@compusol.com.au Compusol Pty. Limited (NSW, Australia) +61 2 9810 3633
Unidentified subject!
unsubscribe
Re: Mapping cmd to alt in X with linux keycodes
On Wed, Oct 10, 2001 at 08:21:45PM -0500, Branden Robinson wrote: >On Wed, Oct 10, 2001 at 04:05:23PM -0800, Ethan Benson wrote: >> the trouble is nobody can agree whether `command == meta' is `wrong' >> or not. >> >> given the option key is the one with `alt' engraved on it one would >> presume it should be treated as alt, regardless of the fact that apple >> put it in the wrong place. >> >> one could probably say the same for Sun keyboards and thier >> caps-lock/control key placement. > >These are easily taken care of with little option files that you can >manipulate with XKbOption. Like "ctrl:nocaps" on the PC keyboard. Patch attached which works on my powerbook. All that's been done is to enable the command key as meta (previously produced nothing) and then provide an option to swap. Works well for me, but may need some attention if there are apple keyboards with right option or command keys that send distinguishable keycodes. My keyboard section looks like this: Driver "keyboard" Option "CoreKeyboard" Option "XkbRules" "xfree86" Option "XkbModel" "macintosh" Option "XkbLayout""us" Option "XkbOptions" "alt:swapmeta" Regards, -- Brendan O'Deabod@compusol.com.au Compusol Pty. Limited (NSW, Australia) +61 2 9810 3633 diff -Naur /etc/X11/xkb.orig/rules/xfree86 /etc/X11/xkb/rules/xfree86 --- /etc/X11/xkb.orig/rules/xfree86 Sat Aug 4 10:46:48 2001 +++ /etc/X11/xkb/rules/xfree86 Thu Nov 8 22:36:54 2001 @@ -148,6 +148,7 @@ ctrl:swapcaps= +ctrl(swapcaps) ctrl:ctrl_ac = +ctrl(ctrl_ac) ctrl:ctrl_aa = +ctrl(ctrl_aa) + alt:swapmeta = +alt(swapmeta) ! option = compat grp_led:num = +leds(num) diff -Naur /etc/X11/xkb.orig/symbols/alt /etc/X11/xkb/symbols/alt --- /etc/X11/xkb.orig/symbols/alt Thu Jan 1 10:00:00 1970 +++ /etc/X11/xkb/symbols/altThu Nov 8 22:29:58 2001 @@ -0,0 +1,6 @@ +// Swap the left alt and "windows" keys +partial modifier_keys +xkb_symbols "swapmeta" { +key { symbols[Group1] = [ Meta_L ] }; +key { symbols[Group1] = [ Alt_L ] }; +}; diff -Naur /etc/X11/xkb.orig/symbols/macintosh/us /etc/X11/xkb/symbols/macintosh/us --- /etc/X11/xkb.orig/symbols/macintosh/us Sat Aug 4 10:46:51 2001 +++ /etc/X11/xkb/symbols/macintosh/us Thu Nov 8 22:31:48 2001 @@ -152,7 +152,7 @@ // End "Keypad" section // Begin modifier mappings -//key { [ Meta_L ] }; +key { [ Meta_L ] }; key { [ Shift_L ] }; key { [ Control_L] }; key { [ Alt_L] }; @@ -171,7 +171,7 @@ //modifier_map Mod1 { Alt_L, Alt_R }; modifier_map Mod2 { Num_Lock }; modifier_map Mod1 { Alt_L, Alt_R }; -//modifier_map Mod4 { Meta_L, Meta_R }; +modifier_map Mod4 { Meta_L, Meta_R }; modifier_map Mod3 { Mode_switch }; // end modifier mappings
Re: G3's, G4's, Altivec, DVD's, iBooks, and TiBooks
On Tue, Oct 23, 2001 at 02:25:23PM +0200, David N. Welton wrote: >Branden Robinson <[EMAIL PROTECTED]> writes: > >> 2) there is a combo DVD-ROM/CD-RW option available for it! >>(It completely blows my mind that this isn't an option on the TiBook.) > >This is definitely something that pisses me off about my tibook. I >could care less about DVD's, and would much rather have a CDRW. I could happily do without either if the bay could be used for a second battery. Regards, -- Brendan O'Deabod@compusol.com.au Compusol Pty. Limited (NSW, Australia) +61 2 9810 3633
Re: Privilege Question
On Fri, Nov 09, 2001 at 11:57:33PM -0800, Laurent de Segur wrote: >I was wondering what type of privileges I need to give to /dev/hdb (cdrom >device on my machine) to be able to access and eject the media. > >The current mode has been set at install time by default as: 'brw-rw' >and the file is owned by 'root disk' causing a program with open("/dev/hdb", >...) or the command 'eject /cdrom' to fail executing. Change the device to root:cdrom, 0660 and add yourself to group cdrom. Regards, -- Brendan O'Deabod@compusol.com.au Compusol Pty. Limited (NSW, Australia) +61 2 9810 3633
Re: installation success using 3.0.16 on iBook Dual USB / HOWTO
On Sat, Nov 10, 2001 at 02:53:57PM -0500, Christopher C. Chimelis wrote: >Oh, one note that I forgot to mention. Don't use the mac-usb keymap on >the TiBookit's apparently incorrect (as I found out when I rebooted >after setting it). For now, the kernel keymap appears to be the better >choice. I'll keep looking into this to see if I can provide a keymap that >is ideal on this beast. Incorrect how? I have mac-usb-us installed on my 400Mhz tibook without problems. Regards, -- Brendan O'Deabod@compusol.com.au Compusol Pty. Limited (NSW, Australia) +61 2 9810 3633