Turning Caps_Lock into Control
Talking about keyboard problems: has anyone managed to implement the one and only keyboard hack, namely: *turning the Caps_Lock key into a Control key*. This is something I usually do easily using xmodmap on Intel machines, but any trick I tried failed on the tiBook. Is it at all possible? Does the hardware forbid it ? Or what ? Cheers, JF
Re: Problem reading audio CDs
On Mar 27, Stew Benedict wrote: On Wed, 27 Mar 2002, Jean-Francois Cardoso wrote: I cannot play audio CDs on a tiBook The CD drive itself works ok: I can mount a data CD (like mdk iso's) and, launching tcd on an audio CD, I can see the audio tracks. However, I cannot play the CD tracks. The log says: : hdc: packet command error: status=0x51 { DriveReady SeekComplete Error } : hdc: packet command error: error=0x54 : ATAPI device hdc: : Error: Illegal request -- (Sense key=0x05) : Invalid command operation code -- (asc=0x20, ascq=0x00) : The failed Play Audio MSF packet command was: : 47 00 00 04 23 16 31 23 09 00 00 00 Regarding ide/hdc, dmesg says: : pmac_ide: enabling IDE bus ID 2 : pmac_ide: enabling IDE bus ID 0 : pmac_ide: enabling IDE bus ID 1 : hda: IBM-IC25N030ATDA04-0, ATA DISK drive : hdc: MATSHITADVD-ROM SR-8187, ATAPI CD/DVD-ROM drive : ide0 at 0xe5255000-0xe5255007,0xe5255160 on irq 19 : ide1 at 0xe5259000-0xe5259007,0xe5259160 on irq 20 : hda: Enabling Ultra DMA 4 : ide_pmac: Set UDMA timing for mode 4, reg: 0x0c50038c : hda: 58605120 sectors (30006 MB) w/1806KiB Cache, CHS=58140/16/63, UDMA(66) : hdc: Enabling MultiWord DMA 2 : ide_pmac: MDMA, cycleTime: 120, accessTime: 90, recTime: 30 : ide_pmac: Set MDMA timing for mode 2, reg: 0x00011d26 : hdc: ATAPI 24X DVD-ROM drive, 512kB Cache, (U)DMA : Uniform CD-ROM driver Revision: 3.12 at least 2 possibilities: 1) Because Apple has opted to remove the audio interface between the CDROM and the sound chip, Argh! Why, oh why, did they do that ? you need to use xmms-cdread plugin to rip audio from the CD to play music (ibook2 and beyond). It's in contribs. I just tried the latest version I could find : xmms-cdread-0.11d-1 but that does not work. Actually, the plug-in does not even see the tracks (yes, I disabled supermount). Now, if we see error messages such as : ATAPI device hdc: : Error: Illegal request -- (Sense key=0x05) : Invalid command operation code -- (asc=0x20, ascq=0x00) : The failed Play Audio MSF packet command was: and also, in the same vein, such as : ATAPI device hdc: : Error: Illegal request -- (Sense key=0x05) : Invalid command operation code -- (asc=0x20, ascq=0x00) : The failed Pause/Resume packet command was: : 4b 00 00 00 00 00 00 00 00 00 00 00 then does not that mean that we are facing a deeper problem ? From what I understand, the KDE cd player will play OK with supermount. I'm able to play audio CD's on my Powerbook, as well as the TiBook I had on loan. I tried gtcd, tcd and grip: they all failed at reading the tracks. I do not have the kde stuff installed and I am a bit reluctant to install it (my message is more a bug report than a help request, I do not *really* need this CD stuff right now). Now for something different: The system is an mdk-8.0 which has been upgraded to be in sync with cooker. In particular, rpm -qa | grep kern says: : kernel-source-2.4.18-4mdk : kernel-headers-2.4.17-24mdk : kernel-2.4.18.4mdk-1-1mdk Kernel headers do not need to be consistant with the kernel, but they do need to be consistant with what was used to build glibc. The kernel build is self contained, and does not use kernel-headers. User space programs, for the most part, should be using /usr/include/*. not /usr/src/linux/include/*. Thanks for the tip. That calls for two questions: 1) Out of curiosity: how does one find which kernel header version glibc is compiled against? (could not find it after a quick rpm -qxxx ) 2) I used to blame failure to compile the kernel on the above (non existent) inconsistency. Shouldn't the kernel compile without error if I am in sync with cooker *and* use the .config found by default the kernel-source rpm ? Cheers, JF
Re: [update] Problem reading audio CDs
More bug, buglets and non-bug reports about audio (on a tiBook). My system is an 8.0mdk, resynched with cooker. Just hoping to help fixing the default configs. Stew: please let me know if these buglet reports are useless (or just have too low a precedence on your todo list for me to bother you with them). 1) Problem reading audio tracks from a CD - I reported failure to read audio-tracks with xmms-cd, grip and tcd. - But, audio tracks are properly ripped (albeit rather slowly) when bypassing the middlemen by calling cdparanoia. -- The problem apparently belong to userland and not to sacry low-level kernel-space. 2) Problems with permissions and various configs. - After ripping a nice cdda.wav with cdparanoia, I cannot play it: o as user, /usr/bin/play reports: sox: Can't open output file '/dev/dsp': Permission denied o as root, /usr/bin/play reports: sox: Unable to set the sample size to 16 - After ogg-encoding cdda.wav, o as user, /usr/bin/ogg123 cdda.ogg reports: === Could not load default driver and no driver specified in config file. Exiting. o as user, /usr/bin/ogg123 -d oss cdda.ogg reports: Device: OSS audio driver output [deletia]Author: Aaron Holtzman [EMAIL PROTECTED] Playing: cdda.ogg Error: Cannot open device oss. Segmentation fault o as root, /usr/bin/ogg123 cdda.ogg just WORKS! JF
Re: [update] Problem reading audio CDs
ran time cdparanoia 1 4:39 track took 3:49.29elapsed on a PB Lombard, which wasn't doing much else except downloading an 8,2x86 ISO. I don't do enough CD ripping to know whether that's fast or slow. I should have been quantitative here. Ripping seemed slower than under OSX, but I do have (like you) quasi realtime ripping under linux. 2) Problems with permissions and various configs. - After ripping a nice cdda.wav with cdparanoia, I cannot play it: o as user, /usr/bin/play reports: sox: Can't open output file '/dev/dsp': Permission denied Unless you're in X, the permissions on /dev/dsp or (/dev/sound/dsp) exclude the audio group. I can't imagine this behavior is PPC specific. While X is running the ownership changes to the user running X. After I closed X, I was still the owner. I was not in X! So the permission problem is non existent. Sorry for the false alarm. I had no idea about this permission business (although it seems reasonable when you think about it). Thanks for the tip. o as user, /usr/bin/ogg123 -d oss cdda.ogg reports: Device: OSS audio driver output [deletia]Author: Aaron Holtzman [EMAIL PROTECTED] Playing: cdda.ogg Error: Cannot open device oss. Segmentation fault o as root, /usr/bin/ogg123 cdda.ogg just WORKS! Are you running devfs? I am here, which may account for some of the differences we're seeing. I am not running devfsd. Weird thing is I cannot launch it either: Running /etc/rc.d/init.d/devfsd start does not return an error, but does not print [ok] either. Checking devfs status says it is stopped (just after starting it). The daemon does not appear in the ps list. Looking at the /etc/rc.d/init.d/devfsd script, this apears to be due to the lack of /dev/.devfsd special character. Thanks for your feedback, Cheers, JF.
Re: damn diskdrake/installer LONG ;)
On Mar 14, Stew Benedict wrote: Check out fbset for adjusting your screen display, or if you come up with better modeline, please pass it on. Ben already mentioned before my type on the Tibook entry, with 2 +vsync's This works great on a ti-book with a radeon card: Modeline ti-1152x768 78.741 1152 1173 1269 1440 768 769 772 800 +vsync +vsync HTH, jf