|
Tord's muhammed 15 August 2004
Status
- 2.6.7 kernel up and running, using APM
- 2.6.9 currently default, running ACPI
- Attaches the iPod
- Power management
- Fn+D blacks screen, fails to recover properly in X11
- The Captive driver would be useful for writing to NTFS -- get the debs
- Once he has WinXP reinstalled, install an ext2fs reader
- Keep copies of configuration files in /fatima/programvare/debs/system* and on /vc/systems/other/tord
To do
- change the crontab for ntpdate to this: /etc/init.d/ntpdate start >/dev/null 2>&1
- add the real-time thing mplayer likes
- check locale to set default paper size
- is openoffice.org-l10n-nb installed?
- check file associations in konqueror
- add snd_mixer_oss and snd-rtctimer to /etc/modules and verify sound is working
- add APM to SysV and check default runlevel (appears to be 3)
- define device node for the DVD player (and check the CD player) -- put details here
- burn mp3 files on a CD so that it's playable in any player -- see ideas
- configure cpufreqd
- cp /var/log/boot /fatima/pr*/*inux/sys*/ and sync it to spello
- just install laptop-mode-tools (hold off until you've tested it)
- check dmesg to see if speedstep-ich loads
- run i8kutils frontend -- called?
- try using ktalkd
Guides
- Mailing list
- linux-dell-laptops list
- debian-laptops list
- FAQs
- Linux on a Dell Inspiron 8200 -- the best writeups
- See also Linux on Laptops
- Zaurus
Software
Projects
2.6 kernel -- loose ends
- See 10-12 August 2004 update below for details
- "Two of the multimedia keys (volume up, down and CD play, stop, previous, next) stopped working with kernel 2.6" -- see fix
Attach the iPod
- Should be easier with the 2.6 kernel
- no SCSI CD drives
- ieee1394 hotplug works (only on boot -- or possibly also after having unloaded and reloaded sbp2?)
- See instructions
- To attach the iPod
- old method: plug it in before booting -- it should hotplug (I disabled hotplug when this didn't work)
- new method:
- modprobe ieee1394
- modprobe ohci1394
- use gtkpod to mount it
- To detach the iPod, issue
Convert DVD lectures to mp3 files
- Extract VOB files from DVD:
- some program can do this from the command line
- tccat -t dvd -T 1,-1,1 -i /dev/dvd | split -b 1024m - mymovie-
- Extract PCM files from DVD:
- mplayer -dvd 1 -vo null -nogui -ao pcm -aofile Movie.pcm
Hardware
root@muhammed:/etc/apt# lspci
00:00.0 Host bridge: Intel Corp. 82845 845 (Brookdale) Chipset Host Bridge (rev 04)
00:01.0 PCI bridge: Intel Corp. 82845 845 (Brookdale) Chipset AGP Bridge (rev 04)
00:1d.0 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #1) (rev 02)
00:1d.2 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #3) (rev 02)
00:1e.0 PCI bridge: Intel Corp. 82801BAM/CAM PCI Bridge (rev 42)
00:1f.0 ISA bridge: Intel Corp. 82801CAM ISA Bridge (LPC) (rev 02)
00:1f.1 IDE interface: Intel Corp. 82801CAM IDE U100 (rev 02)
00:1f.5 Multimedia audio controller: Intel Corp. 82801CA/CAM AC'97 Audio (rev 02)
00:1f.6 Modem: Intel Corp. 82801CA/CAM AC'97 Modem (rev 02)
01:00.0 VGA compatible controller: nVidia Corporation NV17 [GeForce4 440 Go] (rev a3)
02:00.0 Ethernet controller: 3Com Corporation 3c905C-TX/TX-M [Tornado] (rev 78)
02:01.0 CardBus bridge: Texas Instruments PCI4451 PC card Cardbus Controller
02:01.1 CardBus bridge: Texas Instruments PCI4451 PC card Cardbus Controller
02:01.2 FireWire (IEEE 1394): Texas Instruments PCI4451 IEEE-1394 Controller
Graphics card
- The nVidia GeForce4 440 Go, a.k.a. NV17
- nvidia-glx and nvidia-kernel-source
- Current version 6101 -- and 6111 is available
- Framebuffer (use vga=318, and try vga=793 or 797 or 798 for 1600x1200)
Modem
Low priority, as Tord currently has no need for it.
- People report that the HSF driver works -- get it from this page, or check out these instructions (with patched rpm).
- The sl-modem driver may also work, so try that first
- sl-modem-source and sl-modem-daemon -- compile and test
Network
See ADSL
Infrared
Built in; not tested. 2.6.7-01 kernel has the modules.
Wireless
Not built in -- use a PCMCIA card.
Installation history
12 June 2005 update
portmap: bound portmap to loopback device in /etc/default/portmap (not
used) -- just reconfigure portmap to change. This may have caused some
major grief -- no loopback device means no ssh tunnel -- possibly.
Anyway, tunnel didn't work. I reconfigured portmap and restarted it,
but how do I then start the loopback device? Got it -- ifup lo. Nice!
So binding portmap to the loopback device seemed to just paralyse
everything!
Printer: The printer wasn't working, and the printer setup in KDE
wasn't giving the right options. Stab in the dark stuff, but it
worked:
rm ~/.kde/share/config/kdeprintrc
just purge cupsys cupsys-driver-gimpprint cupsys-driver-gimpprint-data
kde-core kdebase kdeprint libprintsys libprinterconf0
cupsomatic-ppd foomatic-bin foomatic-db foomatic-db-engine
foomatic-db-gimp-print psptools foomatic-db-hpijs foomatic-filters-ppds
xprt-common xprt-xprintorg cupsys-bsd cupsys-client gs-esp hpijs
libcupsimage2
just install kdeprint cupsys cupsys-bsd cupsys-client
cupsys-driver-gimpprint cups-pdf foomatic-bin foomatic-db
foomatic-db-engine foomatic-db-hpijs foomatic-filters-ppds hpijs hplip
hplip-base hplip-data libcupsimage2 python-qt3 python2.3-qt3
python2.3-sip4-qt3 cupsys-driver-gimpprint-data kde-core kdebase
psptools
lpinfo -v
I installed two new drivers for the same printer and issued
# lpstat -t
scheduler is running
system default destination: Dokumentskriver
device for Dokumentskriver: usb://Brother/HL-1440%20series
device for Nettskriver: usb://Brother/HL-1440%20series
Dokumentskriver accepting requests since Jan 01 00:00
Nettskriver accepting requests since Jan 01 00:00
printer Dokumentskriver now printing Dokumentskriver-2. enabled since Jan 01 00:00
USB printer is busy; will retry in 5 seconds...
printer Nettskriver now printing Nettskriver-3. enabled since Jan 01 00:00
USB printer is busy; will retry in 5 seconds...
Dokumentskriver-2
root
15360 søn 12-06-2005 22:31:09 CEST
Nettskriver-3
root
15360 søn 12-06-2005 22:34:10 CEST
Looks good so far, but the queue is not clearing. A restart may be required. Is using cups a mistake for a local printer?
I also installed java and azureus, but it doesn't look like there are usable ports. I tested k3b -- looked fine.
New stuff I learned: when running the vnc tunnel, you can start twm
instead of kdestart, and get a light window manager. Inside it, you can
run screen, and inside screen various apps -- I even ran xcdroast
inside screen and burned a CD. Seemed successful.
29 August 2004 update
- installed kernel 2.6.8-5 (possibly crash prone, has built-in ksym-something)
- installed kernel 2.6.7-4
- turned off hotplug and made a list of modules to load in /etc/modules
- left out pcmcia
- kept serial (could be left out?)
- updated lots of kde 3.3 programs
- sound not tested
18 August 2004 update
- set /etc/default/bootlogd to yes
15 August 2004 update -- disk geometry in 2.6
I installed the 2.6.7 kernel and got this on issuing lilo:
Device 0x0300: Invalid partition table, 2nd entry
3D address: 1/0/4 (4032)
Linear address: 1/12/63 (64260)
I isolated the problem to the /windows partition, which is misdetected
and thus WinXP won't show up in the boot menu. I booted into 2.4 and
ran lilo there -- it works fine. Turns out 2.6 doesn't detect the disk
geometry, so you have to tell it what it is -- in muhmamed's case, add this boot parameter to /etc/lilo.conf
This fixed the problem. See details under Lilo.
10-12 August 2004 update
The iPod showed that muhammed confused various SCSI devices, and hotplug isn't handled in the 2.4
kernel. With the
2.6 kernel, the burner and CD player will no longer be SCSI devices.
That leaves the iPod and the Flash stick, and they don't need to be
used at the same time. So this is the time to go to 2.6!
Configured the first 2.6 kernel for muhammed, using 2.6.7 (see local copy):
- Included APM and did not include ACPI (i8k needs it, try ACPI later)
- Did not include Processor type and features | Preemptible
- Speedstep-ich built-in -- should load on boot
- i8k for Dell laptops (see i8kutils below) built in
- No Wireless support (there's no hardware)
- No OSS sound (old style -- ALSA emulation included)
- IR as modules
- ALSA sound <M> Intel i8x0/MX440, SiS 7012; Ali 5455; NForce Audio; AMD768/8111
- ALSA modem <M> Intel i8x0/MX440; AMD768/8111 modems (EXPERIMENTAL)
This needs to be tested -- most importantly, for ADSL (works fine). Installed the i8kutils package (see also
maintainer). Made a copy of the
configuration files to /vc. On compiling, I included these external
modules:
- sl-modem-source (did not install -- could install and test, but use sysv-rc-conf to prevent it starting at boot)
- nvidia (got the latest)
Note that the pcmcia-cs package is not needed for kernels 2.4 and later.
I installed the kernel and the new nvidia kernel driver -- it installs
correctly into the 2.6 /lib/modules, even though I'm running the 2.4
kernel. I then did the following:
- installed module-init-tools
- added snd to /etc/modules and removed sr_mod
- assigned the CD drives to /hdb and /hdc
- added 2.6.7 to lilo.conf -- and hdb and hdc are not reassigned to SCSI
Not
sure if this is everything required. I set the new kernel as default
and issued reboot, and muhammed came back! I had to reinstall
nvidia-kernel for some reason, and upgraded x-windows (all of it),
but everything is looking great.
- Advantages
- easier to mount ipod
- easier upgrades down the line
- Potential drawbacks
- "Two of the multimedia keys (volume up, down and CD play, stop, previous, next) stopped
working with kernel 2.6" -- see fix
18 June 2004 update -- the i8K module and utilities for system management
Verify that this kernel option was activated:
CONFIG_I8K:
This adds a driver to safely access the System Management Mode of the
CPU on the Dell Inspiron and Latitude laptops. The System Management
Mode is used to read cpu temperature, cooling fan status and Fn-keys
status on Dell laptops. It can also be used to switch the fans on and off. The driver has been developed and
tested on an Inspiron 8000 but it should work on any Dell Inspiron or
Latitude laptop.
Here's the userspace program, i8kutils, that goes with it -- source:
This is a collection of utilities to control Dell Inspiron and Latitude
laptops. It includes programs to turn the fan on and off, to read fan
status, CPU temperature, BIOS version and to handle the volume buttons
and Fn-keys.
The package includes also a small Tk applet, designed to be swallowed in the
gnome panel, which monitors the CPU temperature and controls automatically
the fans accordingly to user defined thresholds.
The programs require the kernel module i8k.o which can be compiled from
the package sources or found in Linux kernel 2.4.14 and later versions.
The kernel module has been tested only on Inspiron 8000 laptops but it
should work on any Inspiron and Latitude laptops.
Here is the maintainer's README -- source:
I8KUTILS FOR LINUX - VERSION 1.24 =================================
This package contains a kernel driver and user-space programs for accessing the SMM BIOS of Dell Inspiron and Latitude laptops. The SMM BIOS is used on many recent laptops to implement APM functionalities and to access custom hardware, for example the cooling fans and volume buttons of the I8000.
The kernel driver and the utilities included in the package can report the following information about the hardware:
* BIOS version
* serial number
* CPU temperature
* fan status
* fan rotation speed (only on some models)
* ac power status
* volume buttons status (not the multimedia buttons)
The package include also the following utilities:
* i8kctl - command-line interface to the kernel driver
* i8kmon - temperature monitor with automatic or manual fan control
* i8kbuttons - monitors volume buttons and runs user-defined commands
The i8kctl can be used to manually control the fan speed, like my old i8kfan utility, but that program is now obsoleted by the new i8kmon program which can continuously monitor the CPU temperature and control automatically the fans. The automatic fan control feature of i8kmon does essentially the same job of the BIOS. The only difference is that my program works.
The latest version of the i8kutils package, including the latest i8k kernel driver, can be downloaded from:
http://www.debian.org/~dz/i8k/
The driver works only with kernels 2.4 and 2.5. There will not be a porting on older kernels.
16 June 2004 Update
I ran the modem detection script and foudn that the sl-modem drivers may work:
Controller 8086:2486 82801CA/CAM AC'97 ICH3
SubSystem 14f1:5421 Conexant MD56ORD V.92 MDC Modem
Under the controller 8086:2486 82801CA/CAM AC'97 ICH3, the modem subSystem 14f1:5421
may be supported by the SmartLink slmodem-2.9.n drivers, even for non-SmartLink chipsets.
Not installed or tested.
The following NEW packages will be installed:
alsa-base alsa-utils gimp-help gimp-nonfree gimp-python k3b-i18n xdaliclock xli xscreensaver xscreensaver-gl
The following packages will be upgraded:
gimp gimp-data gkrellm gkrellm-common k3b k3blibs kdeartwork
kdeartwork-misc kdeartwork-style kdeartwork-theme-icon
kdeartwork-theme-window kdewallpapers kscreensaver libasound2 libmad0
No protests.
15 June Update
Jeg oppdaget at muhammed hadde problemer med å finne en URL i
Israel, og la inn "nextgentel.net" i Domain Name Search filen,
/etc/resolv.conf. Det ser ut til å ha løst problemet.
/etc/resolv.conf ser nå slik ut:
search nextgentel.net
nameserver 217.13.4.21
nameserver 217.13.7.136
Jeg fant ut at nextgentel var din ISP ved å skrive
host 217.13.4.21
So Tord's ISP appears to be nextgentel, which uses the SMPT server mail.broadpark.no. Added to the Thunderbird configuration.
He has e-mail with Tele2, which uses SMPT mail.c2i.net -- likely irrelevant.
6 June 2004 Update
Tord's UTF-8 definition doesn't work right -- e-mail is messed up and
OpenOffice can't open docs with Norwegian letters in the name. I
advised him to switch to none or no_NO.ISO-8859-1 and even try loadkeys
no and if it works install-keymap no.
I also figured out how to change the locale manually -- and you can change the locale without changing the language:
export LC_ALL=C
This finally got fixed, using locale nb for bokmål (just reconfigure locales):
root@cyberspace:~# locale
LANG=nb_NO
LC_CTYPE="nb_NO"
LC_NUMERIC="nb_NO"
LC_TIME="nb_NO"
LC_COLLATE="nb_NO"
LC_MONETARY="nb_NO"
LC_MESSAGES="nb_NO"
LC_PAPER="nb_NO"
LC_NAME="nb_NO"
LC_ADDRESS="nb_NO"
LC_TELEPHONE="nb_NO"
LC_MEASUREMENT="nb_NO"
LC_IDENTIFICATION="nb_NO"
LC_ALL=
Do "locale -a" to see available locales:
root@sigillo:~# locale -a C
nb_NO
nb_NO.iso88591
POSIX
Now how about trying bokmål?
export LC_ALL=bokmal
export LANG=bokmal
I then get:
root@sigillo:~# locale charmap
ISO-8859-1
Wow! So that's implied! However, I still can't type
æøå in konsole. And when I exit x-windows, the same
command gives POSIX! So locale has only been changed in one terminal.
Since I can't use æøå in konsole, I recompiled the 2.6.5 kernel as follows:
File systems | Native language support
* Base native language support
<M> Codepage 437 (United States, Canada)
<M> Codepage 850 (Europe)
<M> Codepage 865 (Norwegian, Danish)
<*> NLS ISO 8859-1 (Latin 1; Western European Languages)
<M> NLS UTF8
So ISO-8859-1 is compiled in, the others are modules.
Then I find out that locale can be set in /etc/profile! Just add
export LANG=no_NO
export LC_ALL=no_NO.iso88591
loadkeys no-standard
You could also put this in .bashrc.
There's a discussion on how to get OpenOffice to recognize UTF-8, but I don't see an elegant solution. Note that you can start OpenOffice with this switch:
LANG=C openoffice
You can then monitor whether OOo successfully imports the current locale.
Possible addition to the x-windows configuration:
Section "InputDevice" Identifier "Keyboard1" Driver "Keyboard" Option "AutoRepeat" "500 30" Option "XkbRules" "xfree86" Option "XkbModel" "pc105" Option "XkbLayout" "dk" Option "XkbVariant" "nodeadkeys" EndSection
This is now tested and works fine -- I can even type Norwegian letters on the command line. Problem fully resolved.
4 June 2004 Update
Looking into keyboards and locales.
- dpkg-reconfigure 'locales'
- /etc/init.d/keymap.sh == loads the keymap on boot!
- install-keymap [ keymap_file | NONE | KERNEL ]
- install-keymap [ keymap_file | NONE | KERNEL ]
- changes which keymap is loaded on boot
- keymaps are in /usr/share/keymaps/i386/qwerty/
- no-latin1.kmap.gz
- no-standard.kmap.gz
- no.kmap.gz
- install-keymap uses loadkeys, so make sure first that that works
- no-latin1.kmap.gz
- no-standard.kmap.gz
- no.kmap.gz
- loadkeys us-latin1
- loadkeys us
- loadkeys us-intl.iso01
- loadkeys us-intl.iso15
I ran dpkg-reconfigure 'locales' and chose en_US.UTF-8 and no_NO.UTF-8.
I set en_US.UTF-8 as the default until I know what I'm doing -- the
console needs to know how to display.
Keyboard maps are located in /usr/share/keymaps/i386/qwerty/ -- lots of
them. You change keyboard map with loadkeys -- it works, but unless you
have the right console driver, it won't display the Norwegian
characters.
On muhammed, /etc/console contains boottime.kmap.gz. How did that get
generated? This is the key. The /etc/console directory is generated by
the package console-common.
# just reconfigure console-common
Looking for keymap to install:
us
Loading /etc/console/boottime.kmap.gz
So there we see it -- the default keymap is us. How do I change that?
Some instructions:
A.
#export LC_CTYPE="de_DE.utf8"
or
#export LANG="de_DE.utf8"
B.
Comment avoir le support de l'euro en console
$ apt-get install euro-support
Ce package contient euro-test, un utilitaire pour tester la configuration. Tres pratique.
$ apt-get install euro-support-console
Inclut les dependances pour le symbole euro dans la console.
1.1 Les locales bien configurees
- Si le systeme n'a pas les definitions necessaires des locales, un `dpkg-reconfigure -plow locales' sera necessaire:
- Selectionner fr_FR@euro
$ export LANG=fr_FR@euro
$ export LC_ALL=fr_FR@euro
1.2 Les polices
- Rajouter
SCREEN_FONT=lat0-16
APP_CHARSET_MAP=iso15
dans /etc/console-tools/config (le package `console-tools' doit etre present)
Le tour est joue. Votre systeme est a présent € compliant :)
30 May 2004 Update
Scanner
Tord's scanner shows up on lsusb:
Bus 001 Device 002: ID 03f0:2205 Hewlett-Packard ScanJet 3500c
The HP ScanJet 3500c (ID 03F0-2205) has a RealTek RTS8801C2-6
ASIC and is being reverse engineered here:
HP Scanjet 3500 series scanners
RTS8801
Mailing list
However, it's still not supported.
The closest driver is the HP4470C Sane driver, which uses the surely similar RealTek RTS8891 chip -- but even this driver is alpha.
Lilo
I installed lilo (22.5.9-2) and mbr, and ran liloconfig:
Install a partition boot record to boot Linux from /dev/hda5? [Yes]
Creating small lilo.conf and running lilo.
Use LBA32 for addressing big disks using new BIOS features ? [Yes]
Warning: Unable to determine video adapter in use in the present system.
Added DEB 0 *
Added DEB 1
Added DEB 2
Added DEB 3
A master boot record is required to run the partition boot record.
If you are already using a boot manager, and want to keep it,
answer "no" to the following question. If you don't know
what a boot manager is or whether you have one, answer "yes".
Install a master boot record on /dev/hda? [No] yes
Installing MBR on /dev/hda
The master boot record will boot the active partition.
If you want your system to boot another operating system,
such as DOS or Windows, by default, answer "no" to the following
question. You may still use your boot manager or the master
boot record to boot Linux. If you want the system to boot Linux.
by default, answer "yes". In this case you could still boot some
other OS if you know what partition it is on.
Make /dev/hda5 the active partition? [Yes]
Activating Partition 5 on disk /dev/hda.
5: not a valid partition number (1-4)
ERROR: activate failed! Your system may not be bootable.
Looks bad. I tried issueing
grub-install /dev/hda5
but it just hung. I then modified lilo to use /dev/hda and not worry
about setting /dev/hda5 as the active partition, and then installed the
lilo modified by thermoman, see http://debian.thermoman.de/misc/graphical_boot_screen_for_lilo/ and http://www.gamers.org/~quinet/lilo/help.html. When I reran liloconf I got this:
# liloconfig
LILO, the LInux LOader, sets up your system to boot Linux directly
from your hard disk, without the need for a boot floppy.
You already have a LILO configuration in the file /etc/lilo.conf
Checking your /etc/lilo.conf for incompatible options...
Install a boot block using your current LILO configuration? [Yes]
==========================================================================
WARNING: Even if lilo runs successfully, see /usr/share/doc/lilo/INCOMPAT.gz
for changes in the usage of the /etc/lilo.conf file.
If needed: edit /etc/lilo.conf and rerun '/sbin/lilo -v'
Running lilo...
LILO version 22.2, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2001 John Coffman
Released 05-Feb-2002 and compiled at 10:40:56 on Feb 3 2004.
MAX_IMAGES = 27
Warning: COMPACT may conflict with LBA32 on some systems
Reading boot sector from /dev/hda
Merging with /boot/boot.b
Mapping message file /boot/penguins.boot
Boot image: /boot/vmlinuz-2.4.26
Added Linux 2.4.26 *
Boot image: /boot/vmlinuz-2.4.20
Added Linux 2.4.20
Boot image: /boot/vmlinuz-2.4.19
Added Linux 2.4.19
Boot other: /dev/hda2, on /dev/hda, loader /boot/chain.b
Added Windows XP
/boot/boot.0300 exists - no backup copy made.
Writing boot sector.
So this looks clean.
25 May 2004 Update
Tunnel works from user root.
- cp gubbio:/apt/get/sources.list -- and then commented out the local repository
- ran netselect-apt to find a closer repository (I installed netselect and netselect-apt) -- found http://ftp.no.debian.org
- kpilot can be configured to use a certain port (for Palm PDAs) -- just reconfigure kpilot
- update-alternatives --config editor
- Java
- added path to /etc/profile
- root@muhammed:/usr/lib/mozilla/plugins# ln -s /usr/local/j2re1.4.2/plugin/i386/mozilla/libjavaplugin_oji.so libjavaplugin_oji.so
- root@muhammed:/usr/lib/mozilla-firefox/plugins#
ln -s /usr/local/j2re1.4.2/plugin/i386/mozilla/libjavaplugin_oji.so
libjavaplugin_oji.so
- tested in konqueror, not in firefox (firefox wouldn't run remotely)
- realplayer (put it in /fatima/programvare/binary -- install using "just reconfigure realplayer" or "just reinstall realplayer"
- flash -- used the flashplayer-mozilla package
- cupsys and samba were broken, depend on libcupsys2-gnutls10, so I used an earlier release:
- cupsys-bsd cupsys-client libcupsimage2 gs-esp (see /fatima/programvare/debs)
- samba samba-common smbclient smbfs swat (see /fatima/programvare/debs)
|
|