[lang_en]
Hardware issues
Sound problems:
wget http://www.linuxant.com/alsa-driver/alsa-driver-linuxant_1.0.23.0_all.deb.zip
unzip alsa-driver-linuxant_1.0.23.0_all.deb.zip
gdebi-gtk alsa-driver-linuxant_1.0.23.0_all.deb
-Install the package and reboot. Now speakers should mute when headphones are connected, HDMI and microphones (internal & external) should be working. Open alsamixer and unmute S/PDIF (you can do that pressing “m”). Choose HDMI output from the pulseaudio volume applet (hardware tab) when needed.
Suspend problem:
sudo gedit /etc/pm/sleep.d/20_custom-ehci_hcd
– Put lines below to the file
#!/bin/sh
# File: "/etc/pm/sleep.d/20_custom-ehci_hcd".
case "${1}" in
hibernate|suspend)
# Unbind ehci_hcd for first device 0000:00:1a.0:
echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci_hcd/unbind
# Unbind ehci_hcd for second device 0000:00:1d.0:
echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci_hcd/unbind
;;
resume|thaw)
# Bind ehci_hcd for first device 0000:00:1a.0:
echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci_hcd/bind
# Bind ehci_hcd for second device 0000:00:1d.0:
echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci_hcd/bind
;;
esac
– Save file and close editor
sudo chmod +x /etc/pm/sleep.d/20_custom-ehci_hcd
Webcam problem:
Skype:
sudo mv /usr/bin/skype /usr/bin/skype.real
sudo gedit /usr/bin/skype
– Put lines below to the file
#!/bin/bash
LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype.real
– Save file and close editor
sudo chmod +x /usr/bin/skype
– restart skype
Pidgin:
sudo mv /usr/bin/pidgin /usr/bin/pidgin.real
sudo gedit /usr/bin/pidgin
– Put lines below to the file
#!/bin/bash
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so pidgin.real
– Save file and close editor
sudo chmod +x /usr/bin/pidgin
– restart pidgin
Wireless LED problem:
sudo gedit /etc/acpi/events/asus-wireless-switch
– Put lines below to the file
event=hotkey ATKD 0000005d
action=/etc/acpi/asus-wireless-switch.sh
– Save and close editor
sudo gedit /etc/acpi/asus-wireless-switch.sh
– Put lines below to the file
#!/bin/sh
# Toggle wireless device on Asus K52 laptops
WLANSTATUS=`cat /sys/class/ieee80211/phy0/rfkill*/state`
test -z $WLANSTATUS && exit 1
if [ $WLANSTATUS = 0 ]; then
echo 0 > /sys/devices/platform/asus_laptop/wlan
elif [ $WLANSTATUS = 1 ]; then
echo 1 > /sys/devices/platform/asus_laptop/wlan
fi
– Save and close editor
sudo chmod +x /etc/acpi/asus-wireless-switch.sh
sudo service acpid restart
sudo /etc/init.d/acpi-support restart
Other issues
Get the calculator button working
sudo gedit /etc/acpi/events/asus-calculator
– Put lines below to the file
event=hotkey (ATKD|HOTK) 000000b5
action=/etc/acpi/asus-calculator.sh
– Save and close editor
sudo gedit /etc/acpi/asus-calculator.sh
– Put lines below to the file
#!/bin/sh
# Start calculator on Asus K52 laptops
. /usr/share/acpi-support/power-funcs
getXconsole
gcalctool &
– Save and close editor
sudo chmod +x /etc/acpi/asus-calculator.sh
sudo service acpid restart
sudo /etc/init.d/acpi-support restart
[/lang_en]
[lang_cs]
Problemy s hardware
Zvuk:
wget http://www.linuxant.com/alsa-driver/alsa-driver-linuxant_1.0.23.0_all.deb.zip
unzip alsa-driver-linuxant_1.0.23.0_all.deb.zip
gdebi-gtk alsa-driver-linuxant_1.0.23.0_all.deb
-Nainstalujte balíček a restartujte systém. Pokud zasunete externí reproduktory nebo sluchátka, měli by se ztlumit interní reproduktory, HDMI a mikrofony (interní a externí) by měli také pracovat. Otevřete alsamixer a zrušte ztlumení S/PDIF (můžete to udělat stisknutím klávesy “m” v alsamixer). Pokud potřebujete HDMI výstup, můžete jej zapnout v pulseaudio volume applet (záložka hardware).
Problém s upsáváním:
sudo gedit /etc/pm/sleep.d/20_custom-ehci_hcd
– Vložte následující řádky do souboru
#!/bin/sh
# File: "/etc/pm/sleep.d/20_custom-ehci_hcd".
case "${1}" in
hibernate|suspend)
# Unbind ehci_hcd for first device 0000:00:1a.0:
echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci_hcd/unbind
# Unbind ehci_hcd for second device 0000:00:1d.0:
echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci_hcd/unbind
;;
resume|thaw)
# Bind ehci_hcd for first device 0000:00:1a.0:
echo -n "0000:00:1a.0" | tee /sys/bus/pci/drivers/ehci_hcd/bind
# Bind ehci_hcd for second device 0000:00:1d.0:
echo -n "0000:00:1d.0" | tee /sys/bus/pci/drivers/ehci_hcd/bind
;;
esac
– Uložte soubor a zavřete editor
sudo chmod +x /etc/pm/sleep.d/20_custom-ehci_hcd
Webcam:
Skype:
sudo mv /usr/bin/skype /usr/bin/skype.real
sudo gedit /usr/bin/skype
– Vložte následující řádky do souboru
#!/bin/bash
LD_PRELOAD=/usr/lib32/libv4l/v4l1compat.so skype.real
– Uložte soubor a zavřete editor
sudo chmod +x /usr/bin/skype
– restart skype
Pidgin:
sudo mv /usr/bin/pidgin /usr/bin/pidgin.real
sudo gedit /usr/bin/pidgin
– Vložte následující řádky do souboru
#!/bin/bash
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so pidgin.real
– Uložte soubor a zavřete editor
sudo chmod +x /usr/bin/pidgin
– restart pidgin
Wireless LED:
sudo gedit /etc/acpi/events/asus-wireless-switch
– Vložte následující řádky do souboru
event=hotkey ATKD 0000005d
action=/etc/acpi/asus-wireless-switch.sh
– Uložte a zavřete editor
sudo gedit /etc/acpi/asus-wireless-switch.sh
– Vložte následující řádky do souboru
#!/bin/sh
# Toggle wireless device on Asus K52 laptops
WLANSTATUS=`cat /sys/class/ieee80211/phy0/rfkill*/state`
test -z $WLANSTATUS && exit 1
if [ $WLANSTATUS = 0 ]; then
echo 0 > /sys/devices/platform/asus_laptop/wlan
elif [ $WLANSTATUS = 1 ]; then
echo 1 > /sys/devices/platform/asus_laptop/wlan
fi
– Uložte a zavřete editor
sudo chmod +x /etc/acpi/asus-wireless-switch.sh
sudo service acpid restart
sudo /etc/init.d/acpi-support restart
Ostatní problémy
Zprovoznění klávesy “kalkulačka”
sudo gedit /etc/acpi/events/asus-calculator
– Vložte následující řádky do souboru
event=hotkey (ATKD|HOTK) 000000b5
action=/etc/acpi/asus-calculator.sh
– Uložte a zavřete editor
sudo gedit /etc/acpi/asus-calculator.sh
– Vložte následující řádky do souboru
#!/bin/sh
# Start calculator on Asus K52 laptops
. /usr/share/acpi-support/power-funcs
getXconsole
gcalctool &
– Uložte a zavřete editor
sudo chmod +x /etc/acpi/asus-calculator.sh
sudo service acpid restart
sudo /etc/init.d/acpi-support restart
[/lang_cs]