Difference between revisions of "HP Mini 5101"

From ArchWiki
Jump to: navigation, search
(Video)
(flagged broken section links (interactive))
(Tag: wiki-scripts)
 
(56 intermediate revisions by 13 users not shown)
Line 1: Line 1:
[[Category:Laptops (English)]]
+
[[Category:HP]]
[[Category:Getting and installing Arch (English)]]
+
== Video ==
[[Category:HOWTOs (English)]]
 
  
==Introduction==
+
Install xf86-video-intel or xf86-video-intel-newest. Make sure to configure [[Intel#KMS_.28Kernel_Mode_Setting.29|KMS]]{{Broken section link}} correctly.
This is the introduction for this article.
 
  
==Hardware==
+
== Audio ==
===Video===
 
Intel stable drivers ([http://aur.archlinux.org/packages.php?ID=28184 xf86-video-intel-stable]) from AUR will give you 250FPS on glxgears.
 
  
===Audio===
+
Typical Intel HD Audio. Just follow [[ALSA]].
Typical Intel HD Audio. Just follow [http://wiki.archlinux.org/index.php/ALSA alsa setup].
 
  
 
Make sure you have the latest version of alsa-utils, alsa-lib and alsa-firmware.
 
Make sure you have the latest version of alsa-utils, alsa-lib and alsa-firmware.
  
===Touchpad===
+
== Network ==
===Network===
 
====Broadcom (Wireless) Driver====
 
[user@mini ~]$ lspci | grep Broadcom
 
08:00.0 Network controller: Broadcom Corporation Device 4353 (rev 01)
 
  
Using [http://aur.archlinux.org/packages.php?ID=19514 broadcom-wl] from AUR will do the trick for open networks. WEP-encrypted networks will complain about invalid argument. WPA-encrypted networks still to be tested, but it seems to work.
+
Swapping eth0/eth1 can confuse [[Wicd]], assigning [[Udev#Mixed_Up_Devices.2C_Sound.2FNetwork_Cards_Changing_Order_Each_Boot|static names]]{{Broken section link}} helps.
  
===ACPI===
+
=== Wireless Driver (Broadcom) ===
====Suspend on Lid====
+
 
====Power Button====
+
See [[Broadcom wireless]] for driver setup.
 +
 
 +
It may be necessary to load the driver (wl as an axample here) manually:
 +
{{hc|/etc/rc.conf |2=MODULES=(... wl ...)
 +
}}
 +
 
 +
Problem with reconnecting after suspending might be solved by:
 +
{{hc|/etc/pm/config.d/01-modules |2=SUSPEND_MODULES="wl"
 +
}}
 +
 
 +
==== Driver Overview ====
 +
 
 +
# brcmsmac: Works best but the red/blue led isn't working.
 +
# broadcom-wl: Needs to be compiled newly from the AUR ({{AUR|broadcom-wifi-builder}}{{Broken package link|{{aur-mirror|broadcom-wifi-builder}}}} or {{AUR|broadcom-wl}}) after each kernel upgrade. LED works but reconnecting problem after suspending.
 +
# b43: Alternatively your network chip may be supported by [[Broadcom_wireless#b43.2Fb43legacy|b43]]{{Broken section link}} (kernel > 2.6.32).
 +
 
 +
== Bluetooth ==
 +
 
 +
See: [[Bluetooth]]
 +
 
 +
== Touchpad ==
 +
 
 +
Works out of the box.
 +
 
 +
== Webcam ==
 +
 
 +
Works out of the box.
 +
 
 +
== ACPI ==
 +
 
 +
=== Suspend on Lid ===
 +
 
 +
This here works quite fine: [[Suspend to RAM#Automatic Suspend, the Hard Way]]{{Broken section link}}
 +
 
 +
It might be necessary to use "/etc/acpi/events/lm_lid" instead of "/etc/acpi/events/lid". (laptop-mode?)
 +
 
 +
Just change the "LID" to it's actual value. For me it was C1D0.
 +
 
 +
{{hc|/etc/acpi/actions/lid_handler.sh|<nowiki>
 +
if grep closed /proc/acpi/button/lid/</nowiki>'''C1D0'''<nowiki>/state >/dev/null ; then </nowiki>}}
 +
 
 +
=== Power Button ===
 +
 
 +
[[Shutting system down by pressing the power button]]
 +
 
 +
=== Hotkeys ===
 +
 
 +
==== Display toggle ====
 +
 
 +
[[ACPI hotkeys]]
 +
 
 +
# acpi_listen
 +
(Press fn+f2)
 +
video C088 00000080 00000000
 +
So we have to edit
 +
/etc/acpi/handler.sh
 +
like this
 +
{{hc|/etc/acpi/handler.sh |
 +
case "$1" in
 +
    .
 +
    .
 +
    .
 +
    video)
 +
        arandr #or path to your shell script for switching display mode
 +
        ;;
 +
    .
 +
    .
 +
    .
 +
esac
 +
}}
 +
 
 +
==== Mute, browser button, volume down, etc... ====
 +
 
 +
[[Extra keyboard keys]]
 +
 
 +
== Hard disk shock protection ==
 +
 
 +
Install [https://aur.archlinux.org/packages.php?ID=45093 hpfall] from AUR and add it to rc.conf:
 +
{{hc|/etc/rc.conf |2=DAEMONS=(... hpfall ...)
 +
}}
 +
 
 +
See also [[Laptop#Hard_disk_shock_protection|Shock protection for HP/Compaq laptops]].

Latest revision as of 10:34, 7 August 2016

Video

Install xf86-video-intel or xf86-video-intel-newest. Make sure to configure KMS[broken link: invalid section] correctly.

Audio

Typical Intel HD Audio. Just follow ALSA.

Make sure you have the latest version of alsa-utils, alsa-lib and alsa-firmware.

Network

Swapping eth0/eth1 can confuse Wicd, assigning static names[broken link: invalid section] helps.

Wireless Driver (Broadcom)

See Broadcom wireless for driver setup.

It may be necessary to load the driver (wl as an axample here) manually:

/etc/rc.conf 
MODULES=(... wl ...)

Problem with reconnecting after suspending might be solved by:

/etc/pm/config.d/01-modules 
SUSPEND_MODULES="wl"

Driver Overview

  1. brcmsmac: Works best but the red/blue led isn't working.
  2. broadcom-wl: Needs to be compiled newly from the AUR (broadcom-wifi-builderAUR[broken link: archived in aur-mirror] or broadcom-wlAUR) after each kernel upgrade. LED works but reconnecting problem after suspending.
  3. b43: Alternatively your network chip may be supported by b43[broken link: invalid section] (kernel > 2.6.32).

Bluetooth

See: Bluetooth

Touchpad

Works out of the box.

Webcam

Works out of the box.

ACPI

Suspend on Lid

This here works quite fine: Suspend to RAM#Automatic Suspend, the Hard Way[broken link: invalid section]

It might be necessary to use "/etc/acpi/events/lm_lid" instead of "/etc/acpi/events/lid". (laptop-mode?)

Just change the "LID" to it's actual value. For me it was C1D0.

/etc/acpi/actions/lid_handler.sh
if grep closed /proc/acpi/button/lid/C1D0/state >/dev/null ; then 

Power Button

Shutting system down by pressing the power button

Hotkeys

Display toggle

ACPI hotkeys

# acpi_listen
(Press fn+f2)
video C088 00000080 00000000

So we have to edit

/etc/acpi/handler.sh

like this

/etc/acpi/handler.sh 
case "$1" in
    .
    .
    .
    video)
        arandr #or path to your shell script for switching display mode
        ;;
    .
    .
    .
esac

Mute, browser button, volume down, etc...

Extra keyboard keys

Hard disk shock protection

Install hpfall from AUR and add it to rc.conf:

/etc/rc.conf 
DAEMONS=(... hpfall ...)

See also Shock protection for HP/Compaq laptops.