Add k10temp discussion to Aspire One 722 post.
[blog.git] / posts / Aspire_One_722.mdwn
1 Hardware
2 ========
3
4 Processor
5 ---------
6
7 The processor is an AMD Fusion [C-60][] (dual core, x86-64, 1 GHz;
8 `CONFIG_MK8` option).
9
10 You can monitor the processor temperature uring the [k10temp][] module
11 (`CONFIG_SENSORS_K10TEMP` option), which communicates with the
12 processor via the PCI bus:
13
14     $ lspci -k
15     …
16     00:18.3 Host bridge: Advanced Micro Devices [AMD] Device 1703
17         Kernel driver in use: k10temp
18         Kernel modules: k10temp
19     …
20
21 You can find read the processor temperature in degrees Celsius using
22 sysfs.  On my system, I can use:
23
24     $ cat '/sys/module/k10temp/drivers/pci:k10temp/0000:00:18.3/temp1_input'
25     75500
26
27 You can also get there directly through the PCI interface:
28
29     $ cat '/sys/devices/pci0000:00/0000:00:18.3/temp1_input'
30     75500
31
32 Graphics
33 --------
34
35 Radeon [Evergreen][] IGP ([HD 6290][hd6290]) integrated into
36 the C-60 processor (`radeon` module, `CONFIG_DRM_RADEON` and
37 `CONFIG_DRM_RADEON_KMS` options).
38
39 Audio
40 -----
41
42 Builtin ATI soundcard and ATI Azalia.  Both sound cards use [Intel's
43 HDA interface][HDA]:
44
45     00:01.1 Audio device: ATI Technologies Inc Device 1314
46         Subsystem: Acer Incorporated [ALI] Device 0598
47         Kernel driver in use: snd_hda_intel
48         Kernel modules: snd-hda-intel
49     00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA) (rev 40)
50         Subsystem: Acer Incorporated [ALI] Device 0598
51         Kernel driver in use: snd_hda_intel
52         Kernel modules: snd-hda-intel
53
54 In order to get these working with [ALSA][], I had to adjust the
55 default soundcard by adding `/etc/asound.conf`:
56
57     pcm.!default {
58       type hw
59       card SB
60     }
61
62     ctl.!default {
63       type hw
64       card SB
65     }
66
67 following [this FAQ][ALSA-26].
68
69 You may also want to enable the `dmix` plugin, to enable software
70 mixing of multiple streams (e.g. to play two songs at the same time).
71 I haven't bothered yet, but Pedro Venda discusses the setup
72 [here][dmix].  If you haven't enabled the plugin, you may get errors
73 like:
74
75     $ ogg123 -q test.ogg &
76     $ ogg123 -q test.ogg
77     === Could not load default driver and no driver specified in config file. Exiting.
78
79 Networking
80 ----------
81
82 The wired network card is an Atheros/Attansic [AR8152][] (`atl1c`
83 module, `CONFIG_ATL1C` option; Atheros [aquired Attansic][attansic] in
84 2007).  The wireless network card is a Broadcom [BCM4313][]
85 (`brcmsmac` module, `CONFIG_BRCMSMAC` option).
86
87 The Broadcom drivers [require firmware][brcm-firm], which you can get
88 from
89 `git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git`.
90 You'll need to install `bcm43xx-0.fw` and `bcm43xx_hdr-0.fw` into
91 `/lib/firmware/brcm`.  Despite the name similarity, this is not the
92 firmware installed by Gentoo's `net-wireless/b43-firmware` package
93 (which fills in `/lib/firmware/b43`.
94
95 There is also difficulty running both the `atl1c` and `brmcsmac`
96 drivers at the same time.  Upon associating with a wireless access
97 point, the kernel (3.2.0-rc2) [hangs][net-mod-hang], forcing a
98 hard-reboot.  To avoid this issue, it's wise to remove the `atl1c`
99 module before attempting to connect to a wireless access point.  For
100 example:
101
102     # /etc/init.d/net.eth0 stop
103     # /etc/init.d/net.wlan0 stop
104     # modprobe -r atl1c
105     # modprobe -r brcmsmac
106     # modprobe brcmsmac
107     # /etc/init.d/net.wlan0 start
108
109 I'm not sure if re-loading the `brcmsmac` module accomplishes anything
110 here, but it can't hurt ;).
111
112 Another `brcmsmac` limitiation is that it [only supports managed and
113 monitor interfaces][brcmsmac-interfaces] (no master, ad-hoc, etc.).
114
115 Webcam
116 ------
117
118 The Suyin webcam is fairly standard, supporting the [USB video class][UVC]
119 for video4linux (`uvcvideo` module, `CONFIG_USB_VIDEO_CLASS` option).
120
121 Card reader
122 -----------
123
124 I haven't tested the Realtek [RTS51xxx][] card reader yet, but it uses
125 the `ums_realtek` module (`USB_STORAGE_REALTEK` option).
126
127 Internals
128 ---------
129
130     $ lspci -k
131     …
132     00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 42)
133         Subsystem: Acer Incorporated [ALI] Device 0598
134         Kernel driver in use: piix4_smbus
135         Kernel modules: i2c-piix4
136     …
137
138 TODO
139 ----
140
141 What are these for?
142
143     00:14.3 ISA bridge: ATI Technologies Inc SB700/SB800 LPC host controller (rev 40)
144         Subsystem: Acer Incorporated [ALI] Device 0598
145     00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge (rev 40)
146     00:15.0 PCI bridge: ATI Technologies Inc Device 43a0
147         Kernel driver in use: pcieport
148     00:15.2 PCI bridge: ATI Technologies Inc Device 43a2
149         Kernel driver in use: pcieport
150     00:15.3 PCI bridge: ATI Technologies Inc Device 43a3
151         Kernel driver in use: pcieport
152     00:18.0 Host bridge: Advanced Micro Devices [AMD] Device 1700 (rev 43)
153     00:18.1 Host bridge: Advanced Micro Devices [AMD] Device 1701
154     00:18.2 Host bridge: Advanced Micro Devices [AMD] Device 1702
155     00:18.4 Host bridge: Advanced Micro Devices [AMD] Device 1704
156     00:18.5 Host bridge: Advanced Micro Devices [AMD] Device 1718
157     00:18.6 Host bridge: Advanced Micro Devices [AMD] Device 1716
158     00:18.7 Host bridge: Advanced Micro Devices [AMD] Device 1719
159
160 [C-60]: http://en.wikipedia.org/wiki/Amd_fusion#.22Ontario.@@_.2840.C2.A0nm.29
161 [k10temp]: http://www.kernel.org/doc/Documentation/hwmon/k10temp
162 [Evergreen]: http://en.wikipedia.org/wiki/Evergreen_(GPU_family)
163 [hd6290]: http://en.wikipedia.org/wiki/Comparison_of_AMD_graphics_processing_units#IGP_.28HD_6xxx.29
164 [HDA]: http://en.wikipedia.org/wiki/Intel_High_Definition_Audio
165 [ALSA]: http://www.alsa-project.org/
166 [ALSA-26]: http://alsa.opensrc.org/FAQ026 
167 [dmix]: http://www.pjvenda.net/linux/doc/alsa/#dmix_dsnoop
168 [AR8152]: http://www.qca.qualcomm.com/technology/technology.php?nav1=48&product=98
169 [attansic]: http://en.wikipedia.org/wiki/Qualcomm_Atheros
170 [BCM4313]: http://www.broadcom.com/products/Wireless-LAN/802.11-Wireless-LAN-Solutions/BCM4313
171 [brcm-firm]: http://linuxwireless.org/en/users/Drivers/brcm80211
172 [net-mod-hang]: https://bugzilla.redhat.com/show_bug.cgi?id=754305
173 [brcmsmac-interfaces]: http://lists.shmoo.com/pipermail/hostap/2011-August/023692.html
174 [UVC]: http://www.ideasonboard.org/uvc/
175 [RTS51xxx]: http://www.realtek.com/products/productsView.aspx?Langid=1&PNid=15&PFid=25&Level=4&Conn=3
176
177 [[!tag tags/hardware]]
178 [[!tag tags/linux]]