Difference between revisions of "ASUS Eee PC 1025c"

From ArchWiki
Jump to: navigation, search
(Audio)
(archive page)
 
(39 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{Box BLUE|Caution:|I am learning linux with arch and my Eee PC. So my solutions may be not the best.}}
+
#redirect [[ArchWiki:Archive]]
 
+
[[Category:Archive]]
[[Category:ASUS]]
 
 
 
==HDMI==
 
===Video===
 
You have to change the [[Poulsbo|video driver]].
 
If the HDMI cable is plugged in on boot it is enabled automatically. If it is plugged in after boot you can use [[xrandr]] to enable the second monitor:
 
 
 
# xrandr --output DVI-0 --auto
 
 
 
===Audio===
 
You need to know the number of your sound card and the the number of HDMI device:
 
 
 
{{hc|aplay -l|2=<nowiki>
 
**** Liste der Hardware-Geräte (PLAYBACK) ****
 
Karte 0: Intel [HDA Intel], Gerät 0: ALC269VB Analog [ALC269VB Analog]
 
  Sub-Geräte: 1/1
 
  Sub-Gerät #0: subdevice #0
 
Karte 0: Intel [HDA Intel], Gerät 3: HDMI 0 [HDMI 0]
 
  Sub-Geräte: 1/1
 
  Sub-Gerät #0: subdevice #0
 
</nowiki>}}
 
 
 
====Global====
 
 
 
In /usr/shared/alsa/alsa.conf search the lines
 
default.pcm.card 0
 
default.pcm.device 0
 
 
 
If you change the numbers to your card and device (in my case card is 0 and device is 3) and reboot the audio output switches to HDMI.
 
 
 
====User specific====
 
do [[Advanced_Linux_Sound_Architecture#HDMI_Output_Does_Not_Work|this]] and reboot
 
 
 
====Dynamic====
 
The audio device can also be configured with /etc/asound.conf
 
So you can create a script that links asound.conf to a configuration depending on the hdmi cable plugged in or not: (for some reason my HDMI device is listed as DVI)
 
 
 
{{hc|hdmi_switched.sh|2=<nowiki>
 
#! /bin/bash
 
hdmi_status="$(cat /sys/class/drm/card0-DVI-D-1/status)"
 
ln -f "/etc/alsa/hdmi_$hdmi_status" /etc/alsa/asound.conf
 
alsactl restore
 
</nowiki>}}
 
 
 
Configuration files:
 
{{hc|hdmi_connected|2=<nowiki>
 
pcm.!default {
 
      type hw
 
      card 0
 
      device 3
 
}
 
</nowiki>}}
 
 
 
{{hc|hdmi_disconnected|2=<nowiki>
 
pcm.!default {
 
      type hw
 
      card 0
 
      device 0
 
}
 
</nowiki>}}
 
 
 
Create a symbolic link to /etc/asound.conf
 
 
 
ln -s /etc/alsa/asound.conf /etc/asound.conf
 
 
 
If the user is allowed to run the hdmi_switch.sh script and is also allowed to change files in /etc/alsa folder you can bind that script to a key :D
 
If you also want to change to monitor read [[Advanced_Linux_Sound_Architecture#Using_udev_to_automatically_turn_HDMI_audio_on_or_off|this]].
 
 
 
==Screen Brightness==
 
===acpi===
 
Setting brightness in /sys/class/backlight/acpi_video0/ with the scripts for [[acpid#Enabling_backlight_control|acpid]] change the values of the files ''brightness'' and ''actual_brightness'' but do not have any effect on current screen brightness.
 
 
 
Set the [[Backlight#ACPI|following]] as kernel parameters in your bootloader
 
acpi_osi=Linux acpi_backlight=vendor
 
 
 
To make this permant [[Kernel_parameters#GRUB|see here]]
 
 
 
==== FN Keys ====
 
Now there is a folder ''eeepc-wmi'' in /sys/class/backlight and the scripts need to be updated
 
{{hc|/etc/acpi/actions/bl_up.sh|<nowiki>
 
  #!/bin/sh
 
  bl_device=/sys/class/backlight/eeepc-wmi/brightness
 
  echo $(($(cat $bl_device)+1)) >$bl_device
 
</nowiki>}}
 
 
 
{{hc|/etc/acpi/actions/bl_down.sh|<nowiki>
 
  #!/bin/sh
 
  bl_device=/sys/class/backlight/eeepc-wmi/brightness
 
  echo $(($(cat $bl_device)-1)) >$bl_device
 
</nowiki>}}
 
 
 
The scripts change the screen brightness everytime I run them. Unfortunately the acpi events for brightnessup and brightnessdown are not available anymore although the brightnessup key sets brightness to maximum and the brightnessdown key sets the brightness to max_brightness-1 :( (do not now where this happens) --> [https://bbs.archlinux.org/viewtopic.php?pid=1200593&ei=NZLMUPKhLonasgbX74CgBw&usg=AFQjCNG2D4H-8dfxK1wGjs78YDjvy-kH_A&bvm=bv.1355325884,d.Yms this may help]
 
 
 
==== AC plug / unplug ====
 
{{hc|/etc/acpi/handler.sh|<nowiki>
 
..
 
ac_adapter)
 
        case "$2" in
 
            ACPI0003:00)
 
                case "$4" in
 
                    00000000)
 
                        logger 'AC unpluged'
 
                        echo $(($(cat /sys/class/backlight/eeepc-wmi/max_brightness)/2)) > /sys/class/backlight/eeepc-wmi/brightness
 
;;
 
                    00000001)
 
                        logger 'AC pluged'
 
                        echo $(($(cat /sys/class/backlight/eeepc-wmi/max_brightness)-1)) > /sys/class/backlight/eeepc-wmi/brightness
 
;;
 
                esac
 
                ;;
 
            *)
 
                logger "AC Adapter ACPI action undefined: $2"
 
;;
 
        esac
 
        ;;
 
..
 
</nowiki>}}
 

Latest revision as of 09:09, 26 November 2017

Redirect to: