Susan: Difference between revisions
From Federal Burro of Information
Jump to navigationJump to search
(24 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
* cpu frequewncy scaling | * cpu frequewncy scaling | ||
* powertop | * powertop | ||
* modem | ** CONFIG_TIMER_STATS | ||
* ACPI | |||
* power saving disk | |||
* monitoring | |||
* snmp | |||
* modem - HSF - lots of trouble. hsf doesn't like amd. | |||
* wireless | * wireless | ||
* | * gaadgets | ||
* webcams | |||
* tune kernel | |||
** drtaab - pared down modules list. | |||
** drtaac - added powertop recommendations | |||
== Config of Note == | |||
/etc/conf.d/local.start | |||
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs | |||
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor | |||
echo 1 > /sys/module/snd_hda_intel/parameters/power_save | |||
see also: http://www.gentoo.org/doc/en/openrc-migration.xml?style=printable | |||
== Hardware == | == Hardware == | ||
* possibly: [http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c00749174&lang=en&cc=us&taskId=101&contentType=SupportFAQ&prodSeriesId=3239110&prodTypeId=12454 Compaq Presario Media Center SR2020NX ] | |||
* possibly motherboard [http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c00714578 A8M2N-LA] | |||
* possibly [http://h10025.www1.hp.com/ewfrf/wc/product?product=3245048&lc=en&cc=ca&dlc=en&task=&lang=en&cc=ca Compaq Presario Media Center SR2020NX Desktop PC] | |||
* CPU: AMD Athlon(tm) 64 Processor 3500+ | * CPU: AMD Athlon(tm) 64 Processor 3500+ | ||
** cpufreq: powernow_k8 | ** cpufreq: powernow_k8 | ||
Line 22: | Line 44: | ||
* Wireless: Ralink corp. RT2561/RT61 802.11g PCI | * Wireless: Ralink corp. RT2561/RT61 802.11g PCI | ||
* Quad port 10/10 ethernet: Tulip ( DECchip 21142/43 (rev 41)) | * Quad port 10/10 ethernet: Tulip ( DECchip 21142/43 (rev 41)) | ||
* usb camera: | |||
** usb 2-1: New USB device found, idVendor=0c45, idProduct=602c | |||
** usb 2-5: New USB device found, idVendor=0c45, idProduct=6029 | |||
== Build notes == | == Build notes == | ||
Line 79: | Line 104: | ||
4 pata_amd 9908 4 | 4 pata_amd 9908 4 | ||
=== Disk === | |||
just one. | |||
<pre> | |||
/dev/sda: | |||
Model=WDC WD300EB-75CPF0, FwRev=06.04G06, SerialNo=WD-WMAAT9825720 | |||
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq } | |||
RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=40 | |||
BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=1 | |||
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=58633344 | |||
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} | |||
PIO modes: pio0 pio1 pio2 pio3 pio4 | |||
DMA modes: mdma0 mdma1 mdma2 | |||
UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5 | |||
AdvancedPM=no WriteCache=enabled | |||
Drive conforms to: Unspecified: ATA/ATAPI-1,2,3,4,5 | |||
* signifies the current active mode | |||
</pre> | |||
== Webcams == | |||
2 of them, both with the same driver. | |||
from lshw: | |||
<pre> | |||
*-usb:0 | |||
description: Generic USB device | |||
product: USB camera | |||
vendor: Microdia | |||
physical id: 5 | |||
bus info: usb@2:5 | |||
version: 1.01 | |||
capabilities: usb-1.10 | |||
configuration: driver=sonixb maxpower=500mA speed=12Mbit/s | |||
*-usb:1 | |||
description: Generic USB device | |||
product: USB camera | |||
vendor: Microdia | |||
physical id: 6 | |||
bus info: usb@2:6 | |||
version: 1.01 | |||
capabilities: usb-1.10 | |||
configuration: driver=sonixb maxpower=500mA speed=12Mbit/s | |||
</pre> | |||
<pre> | |||
susan portage # v4l-info | |||
### v4l2 device info [/dev/video0] ### | |||
general info | |||
VIDIOC_QUERYCAP | |||
driver : "sonixb" | |||
card : "USB camera" | |||
bus_info : "usb-0000:00:0b.0-5" | |||
version : 3.4.9 | |||
capabilities : 0x5000001 [VIDEO_CAPTURE,READWRITE,STREAMING] | |||
standards | |||
inputs | |||
VIDIOC_ENUMINPUT(0) | |||
index : 0 | |||
name : "sonixb" | |||
type : CAMERA | |||
audioset : 0 | |||
tuner : 0 | |||
std : 0x0 [] | |||
status : 0x0 [] | |||
video capture | |||
VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE) | |||
index : 0 | |||
type : VIDEO_CAPTURE | |||
flags : 0 | |||
description : "S910" | |||
pixelformat : 0x30313953 [S910] | |||
VIDIOC_ENUM_FMT(1,VIDEO_CAPTURE) | |||
index : 1 | |||
type : VIDEO_CAPTURE | |||
flags : 0 | |||
description : "BA81" | |||
pixelformat : 0x31384142 [BA81] | |||
VIDIOC_G_FMT(VIDEO_CAPTURE) | |||
type : VIDEO_CAPTURE | |||
fmt.pix.width : 352 | |||
fmt.pix.height : 288 | |||
fmt.pix.pixelformat : 0x30313953 [S910] | |||
fmt.pix.field : NONE | |||
fmt.pix.bytesperline : 352 | |||
fmt.pix.sizeimage : 126720 | |||
fmt.pix.colorspace : SRGB | |||
fmt.pix.priv : 0 | |||
controls | |||
VIDIOC_QUERYCTRL(BASE+0) | |||
id : 9963776 | |||
type : INTEGER | |||
name : "Brightness" | |||
minimum : 0 | |||
maximum : 255 | |||
step : 1 | |||
default_value : 127 | |||
flags : 0 | |||
susan portage # | |||
</pre> | |||
userspace software: | |||
<pre> | |||
susan tmp # ACCEPT_KEYWORDS="~amd64" emerge -av media-video/mjpg-streamer | |||
snip | |||
Calculating dependencies... done! | |||
[ebuild R ] media-video/mjpg-streamer-0_pre20120421 USE="input_file input_uvc output_file output_http output_rtsp output_udp v4l -input_control -input_testpicture -output_autofocus -www" 0 kB | |||
Total: 1 package (1 reinstall), Size of downloads: 0 kB | |||
Would you like to merge these packages? [Yes/No] No | |||
Quitting. | |||
</pre> | |||
<pre> | |||
susan tmp # /usr/bin/mjpg_streamer -i "input_uvc.so -r 320x240 " -o "output_http.so -w /var/www" | |||
MJPG Streamer Version: svn rev: | |||
i: Using V4L2 device.: /dev/video0 | |||
i: Desired Resolution: 320 x 240 | |||
i: Frames Per Second.: 5 | |||
i: Format............: MJPEG | |||
Unable to map buffer: Invalid argument | |||
Init v4L2 failed !! exit fatal | |||
i: init_VideoIn failed | |||
susan tmp # | |||
</pre> | |||
using a folder as a source for streaming (proves that the software works ): | |||
/usr/bin/mjpg_streamer -i "input_file.so -f /var/www" -o "output_http.so" | |||
fails: | |||
/usr/bin/mjpg_streamer -i "input_uvc.so " -o "output_httpd.so" | |||
/usr/bin/mjpg_streamer -i "input_uvc.so -r 640x480 -y" -o "output_httpd.so" | |||
/usr/bin/mjpg_streamer -i "input_uvc.so -r 640x480" -o "output_httpd.so" | |||
all with: | |||
Unable to map buffer: Invalid argument | |||
== Wireless == | == Wireless == | ||
Line 93: | Line 265: | ||
2 mac80211 173491 2 rt2x00pci,rt2x00lib | 2 mac80211 173491 2 rt2x00pci,rt2x00lib | ||
2 rt2x00lib 29364 2 rt61pci,rt2x00pci | 2 rt2x00lib 29364 2 rt61pci,rt2x00pci | ||
* installed wpa_supplicant | |||
* got in log | |||
<pre> | |||
Sep 29 23:00:47 susan kernel: phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. | |||
Sep 29 23:01:30 susan kernel: phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. | |||
Sep 29 23:02:15 susan kernel: phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. | |||
</pre> | |||
* install kernel firmware package. | |||
<pre> | |||
susan wpa_supplicant # wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf | |||
Could not set interface wlan0 flags: No such file or directory | |||
Could not set interface 'wlan0' UP | |||
Failed to initialize driver interface | |||
susan wpa_supplicant # | |||
</pre> | |||
install rfkill be sure I'm not "off" hard/software wise. | |||
<pre> | |||
susan wpa_supplicant # iwconfig wlan0 | |||
wlan0 IEEE 802.11bg ESSID:off/any | |||
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm | |||
Retry long limit:7 RTS thr:off Fragment thr:off | |||
Encryption key:off | |||
Power Management:off | |||
</pre> | |||
wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf | |||
scan for SSIDs: | |||
iwlist wlan0 scan > file | |||
resources: | |||
* http://forums.gentoo.org/viewtopic-t-814535-start-0.html | |||
* handbook of course: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=4 | |||
== Sensors == | |||
sensor-detect notes: | |||
* AMD K8 thermal sensors | |||
* SMSC DME1737 Super IO | |||
* i2c-nforce2 - no response. |
Latest revision as of 04:42, 6 October 2012
Todo
- cpu frequewncy scaling
- powertop
- CONFIG_TIMER_STATS
- ACPI
- power saving disk
- monitoring
- snmp
- modem - HSF - lots of trouble. hsf doesn't like amd.
- wireless
- gaadgets
- webcams
- tune kernel
- drtaab - pared down modules list.
- drtaac - added powertop recommendations
Config of Note
/etc/conf.d/local.start
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor echo 1 > /sys/module/snd_hda_intel/parameters/power_save
see also: http://www.gentoo.org/doc/en/openrc-migration.xml?style=printable
Hardware
- possibly: Compaq Presario Media Center SR2020NX
- possibly motherboard A8M2N-LA
- possibly Compaq Presario Media Center SR2020NX Desktop PC
- CPU: AMD Athlon(tm) 64 Processor 3500+
- cpufreq: powernow_k8
- RAM : DDR2 1GB
- HDD 30 ide
- storage controller:
- video GeForce 6150 LE
- MCP51 High Definition Audio
- MCP51 Ethernet Controller - not used
- Conexant Systems, Inc. HSF 56k Data/Fax Modem
- Wireless: Ralink corp. RT2561/RT61 802.11g PCI
- Quad port 10/10 ethernet: Tulip ( DECchip 21142/43 (rev 41))
- usb camera:
- usb 2-1: New USB device found, idVendor=0c45, idProduct=602c
- usb 2-5: New USB device found, idVendor=0c45, idProduct=6029
Build notes
new build for server susan mkfs.ext2 /dev/hda1 mkfs.ext3 /dev/hda3 mkswap /dev/hda2 /dev/hda1: UUID="a6b1226e-34e0-4d2e-955f-56c52ea60339" TYPE="ext2" /dev/hda2: UUID="a4452166-b64b-48f8-83ee-dfe840480c1c" TYPE="swap" /dev/hda3: UUID="f6bdfa33-f143-46e2-b034-d0483529f4a0" SEC_TYPE="ext2" TYPE="ext3" swapon /dev/hda2 mount /dev/hda1 /mnt/gentoo mkdir /mnt/gentoo/boot MMDDhhmmYYYY syntax (Month, Day, hour, minute and Year). date 092314222012 FAILED: mirrorselect -i -o >> /mnt/gentoo/etc/portage/make.conf mirrorselect -i -r -o >> /mnt/gentoo/etc/portage/make.conf manual: GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/" SYNC="rsync://rsync.ca.gentoo.org/gentoo-portage" mount -t proc none /mnt/gentoo/proc mount --rbind /sys /mnt/gentoo/sys mount --rbind /dev /mnt/gentoo/dev chroot /mnt/gentoo /bin/bash env-update source /etc/profile export PS1="(chroot) $PS1" SYNC="rsync://rsync4.ca.gentoo.org/gentoo-portage"
Storage controllers
product: MCP51 IDE , uses CONFIG_BLK_DEV_AMD74XX
product: MCP51 Serial ATA Controller x 2 ( all sata header have been torn off, hence it's place at the end of someone's driveway )
modules:
4 pata_amd 9908 4
Disk
just one.
/dev/sda: Model=WDC WD300EB-75CPF0, FwRev=06.04G06, SerialNo=WD-WMAAT9825720 Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq } RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=40 BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=1 CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=58633344 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio1 pio2 pio3 pio4 DMA modes: mdma0 mdma1 mdma2 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5 AdvancedPM=no WriteCache=enabled Drive conforms to: Unspecified: ATA/ATAPI-1,2,3,4,5 * signifies the current active mode
Webcams
2 of them, both with the same driver.
from lshw:
*-usb:0 description: Generic USB device product: USB camera vendor: Microdia physical id: 5 bus info: usb@2:5 version: 1.01 capabilities: usb-1.10 configuration: driver=sonixb maxpower=500mA speed=12Mbit/s *-usb:1 description: Generic USB device product: USB camera vendor: Microdia physical id: 6 bus info: usb@2:6 version: 1.01 capabilities: usb-1.10 configuration: driver=sonixb maxpower=500mA speed=12Mbit/s
susan portage # v4l-info ### v4l2 device info [/dev/video0] ### general info VIDIOC_QUERYCAP driver : "sonixb" card : "USB camera" bus_info : "usb-0000:00:0b.0-5" version : 3.4.9 capabilities : 0x5000001 [VIDEO_CAPTURE,READWRITE,STREAMING] standards inputs VIDIOC_ENUMINPUT(0) index : 0 name : "sonixb" type : CAMERA audioset : 0 tuner : 0 std : 0x0 [] status : 0x0 [] video capture VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE) index : 0 type : VIDEO_CAPTURE flags : 0 description : "S910" pixelformat : 0x30313953 [S910] VIDIOC_ENUM_FMT(1,VIDEO_CAPTURE) index : 1 type : VIDEO_CAPTURE flags : 0 description : "BA81" pixelformat : 0x31384142 [BA81] VIDIOC_G_FMT(VIDEO_CAPTURE) type : VIDEO_CAPTURE fmt.pix.width : 352 fmt.pix.height : 288 fmt.pix.pixelformat : 0x30313953 [S910] fmt.pix.field : NONE fmt.pix.bytesperline : 352 fmt.pix.sizeimage : 126720 fmt.pix.colorspace : SRGB fmt.pix.priv : 0 controls VIDIOC_QUERYCTRL(BASE+0) id : 9963776 type : INTEGER name : "Brightness" minimum : 0 maximum : 255 step : 1 default_value : 127 flags : 0 susan portage #
userspace software:
susan tmp # ACCEPT_KEYWORDS="~amd64" emerge -av media-video/mjpg-streamer snip Calculating dependencies... done! [ebuild R ] media-video/mjpg-streamer-0_pre20120421 USE="input_file input_uvc output_file output_http output_rtsp output_udp v4l -input_control -input_testpicture -output_autofocus -www" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB Would you like to merge these packages? [Yes/No] No Quitting.
susan tmp # /usr/bin/mjpg_streamer -i "input_uvc.so -r 320x240 " -o "output_http.so -w /var/www" MJPG Streamer Version: svn rev: i: Using V4L2 device.: /dev/video0 i: Desired Resolution: 320 x 240 i: Frames Per Second.: 5 i: Format............: MJPEG Unable to map buffer: Invalid argument Init v4L2 failed !! exit fatal i: init_VideoIn failed susan tmp #
using a folder as a source for streaming (proves that the software works ):
/usr/bin/mjpg_streamer -i "input_file.so -f /var/www" -o "output_http.so"
fails:
/usr/bin/mjpg_streamer -i "input_uvc.so " -o "output_httpd.so" /usr/bin/mjpg_streamer -i "input_uvc.so -r 640x480 -y" -o "output_httpd.so" /usr/bin/mjpg_streamer -i "input_uvc.so -r 640x480" -o "output_httpd.so"
all with:
Unable to map buffer: Invalid argument
Wireless
Wireless: Ralink corp. RT2561/RT61 802.11g PCI
modules loaded:
1 led_class 2398 1 rt2x00lib 1 rfkill 13313 1 cfg80211 1 rt2x00pci 4388 1 rt61pci 2 cfg80211 139297 2 rt2x00lib,mac80211 2 mac80211 173491 2 rt2x00pci,rt2x00lib 2 rt2x00lib 29364 2 rt61pci,rt2x00pci
- installed wpa_supplicant
- got in log
Sep 29 23:00:47 susan kernel: phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. Sep 29 23:01:30 susan kernel: phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware. Sep 29 23:02:15 susan kernel: phy0 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.
- install kernel firmware package.
susan wpa_supplicant # wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf Could not set interface wlan0 flags: No such file or directory Could not set interface 'wlan0' UP Failed to initialize driver interface susan wpa_supplicant #
install rfkill be sure I'm not "off" hard/software wise.
susan wpa_supplicant # iwconfig wlan0 wlan0 IEEE 802.11bg ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm Retry long limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:off
wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
scan for SSIDs:
iwlist wlan0 scan > file
resources:
- http://forums.gentoo.org/viewtopic-t-814535-start-0.html
- handbook of course: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=4
Sensors
sensor-detect notes:
- AMD K8 thermal sensors
- SMSC DME1737 Super IO
- i2c-nforce2 - no response.