Asus K52JR troubles

Hi! Recently, I have done a successful installation of OpenSUSE 11.4 with Gnome 3.02 (due to help on this forum) on my Asus K52jr laptop. But even after update I see an amount of problems here:

  1. Headphones doesn’t work, only internal speakers.
  2. System doesn’t know how to suspend, of course.
  3. Horisontal scroll by touchpad is absent at all.
  4. After restart the brightness of my screen is always on maximum.
  5. Mouse cursor is broken: after login I get a primitive cursor theme, it can be changed in twicker, but after reboot it returns on.
  6. Icon of current language set in tray is missing, but the switching of keyboard layout is ok.

On my previous system, Ubuntu 10.10, first problem were fixed by installing following package:


sudo add-apt-repository ppa:ubuntu-audio-dev/ppa; sudo apt-get update; sudo apt-get install linux-alsa-driver-modules-$(uname -r)

and second - by these changes:


sudo gedit /etc/pm/sleep.d/20_custom-ehci_hcd

#!/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


sudo chmod +x /etc/pm/sleep.d/20_custom-ehci_hcd

I couldn’t find a solution for OpenSUSE, so any help would be appreciated.
Thank you for attention.

Problem 1: Problem could be entirely solved by adding these string in /etc/modprode.d/50-sound.conf:

options snd-hda-intel model=hp-laptop

Problem 5: Solution is

sudo ln -s /usr/share/icons/Adwaita /usr/share/icons/default

I found that on fedoraforum.org und archlinux.com

The model option hp-laptop can be associated with a Conexant 5066 hardware audio codec on the laptop. I note the following options available for a CX 5066 from the alsa documentation on every openSUSE PC after install (in the HD-Audio-Models.txt file):


Conexant 5066
=============
  laptop	Basic Laptop config (default)
  hp-laptop	HP laptops, e g G60
  asus		Asus K52JU, Lenovo G560
  dell-laptop	Dell laptops
  dell-vostro	Dell Vostro
  olpc-xo-1_5	OLPC XO 1.5
  ideapad       Lenovo IdeaPad U150
  thinkpad	Lenovo Thinkpad

Its possible one of the other options (such as ‘asus’ ) will work better than hp-laptop.

Typically first, before recommending one try an model option, IMHO it is important to know what hardware audio codec is on one’s PC. ie does one have a CX 5066 ? (note there is also another conexant name that corresponds to a CX 5066) . I find the easiest way to determine that is to run the diagnostic script (for audio hardware/software):


/usr/sbin/alsa-info.sh

Good luck with your configuration efforts.