No sound with kernel 2.6.27

After installing kernel 2.6.27 sound stopped working on my PC. Going back to 2.6.26 fixes it. It is a really strange problem, since music programs crashed as soon as I tried to play anything (tried mpd, audacious). Also, "cat /dev/urandom > /dev/dsp" gave me white noise, but it came like from "inside" my computer rather than my speakers. I have an integrated intel card (ICH5). If anyone else has this problem I'll report a bug.

APPEARS TO BE SOLVED see end of post
I have a chaintech av710 soundcard which uses the snd_ice1724 module. After upgrading to 2.7.27 I have no sound... The "blacklist snd-pcsp" fix didn't work for me (that module didn't get loaded anyway).
Things I have tried:
* Blacklist snd-pcsp
* Delete /etc/asound.state and reboot
* Add pci=nomsi to kernel command line and reboot
* Fiddle with controls in alsa-mixer and xfce4-mixer
* Stop alsa and try playing
* Install alsa-tools to get envy24control program, but that didn't load because it expects ice1714 and not ice1724
Funny thing is that now I have no sound at all, except for the little clicks and pops when various sound modules come online. However, after upgrading and rebooting for the first time, I could hear a TINY bit of sound, ie the volume was extremely low.
$ lsmod | grep snd
snd_seq_oss 31872 0
snd_seq_midi_event 8192 1 snd_seq_oss
snd_seq 49968 4 snd_seq_oss,snd_seq_midi_event
snd_pcm_oss 40192 0
snd_mixer_oss 16512 2 snd_pcm_oss
snd_ice1724 92092 5
snd_rawmidi 21504 1 snd_ice1724
snd_seq_device 8332 3 snd_seq_oss,snd_seq,snd_rawmidi
snd_ice17xx_ak4xxx 5120 1 snd_ice1724
snd_ac97_codec 100516 1 snd_ice1724
ac97_bus 3584 1 snd_ac97_codec
snd_ak4xxx_adda 9728 2 snd_ice1724,snd_ice17xx_ak4xxx
snd_ak4114 9984 1 snd_ice1724
snd_pcm 69636 5 snd_pcm_oss,snd_ice1724,snd_ac97_codec,snd_ak4114
snd_timer 21384 3 snd_seq,snd_pcm
snd_page_alloc 9224 1 snd_pcm
snd_pt2258 5504 1 snd_ice1724
snd_i2c 6400 2 snd_ice1724,snd_pt2258
snd 50724 20 snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_ice1724,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_ak4xxx_adda,snd_ak4114,snd_pcm,snd_timer,snd_pt2258,snd_i2c
soundcore 8160 2 snd
$ lspci | grep audio
06:01.0 Multimedia audio controller: VIA Technologies Inc. VT1720/24 [Envy24PT/HT] PCI Multi-Channel Audio Controller (rev 01)
$ ls -al /proc/asound
total 0
dr-xr-xr-x 5 root root 0 2008-10-15 23:29 .
dr-xr-xr-x 101 root root 0 2008-10-15 23:15 ..
dr-xr-xr-x 6 root root 0 2008-10-15 23:31 card0
dr-xr-xr-x 2 root root 0 2008-10-15 23:31 oss
dr-xr-xr-x 2 root root 0 2008-10-15 23:31 seq
lrwxrwxrwx 1 root root 5 2008-10-15 23:31 AV710 -> card0
-r--r--r-- 1 root root 0 2008-10-15 23:31 cards
-r--r--r-- 1 root root 0 2008-10-15 23:31 devices
-r--r--r-- 1 root root 0 2008-10-15 23:31 modules
-r--r--r-- 1 root root 0 2008-10-15 23:31 pcm
-r--r--r-- 1 root root 0 2008-10-15 23:31 timers
-r--r--r-- 1 root root 0 2008-10-15 23:31 version
$ cat /proc/asound/cards
0 [AV710 ]: ICE1724 - Chaintech AV-710
Chaintech AV-710 at 0xec00, irq 17
Think I should file a bug report?
UPDATE
At some point I accidentally removed alsa-utils. With alsa stopped, I unloaded the snd_ice1724 module, then loaded it again with modprobe. The sound worked after I adjusted the "front" level, which was not previously neccesary. This isn't really a fix though because I had to get rid of ALSA...
UPDATE 2
I performed roughly these steps:
{as my user}
rm ~/.config/xfce4/mcs_settings/sound.xml [i think it was called sound.xml]
{as root}
/etc/rc.d/mpd stop
/etc/rc.d/alsa stop
rm /etc/asound.state
rmmod snd_ice1724
modprobe snd_ice1724
/etc/rc.d/alsa start
/etc/rc.d/mpd start
Then started alsamixer to adjust the controls.... And I have sound again. Rebooted, and mpd started playing automatically like it should.
In short I deleted all the sound configuration, I don't know exactly what did it. I think something has changed though because before it was not neccesary to adjust the "front" level to hear anything.
Last edited by Mashi (2008-10-16 04:12:54)

Similar Messages

  • [SOLVED] No sound with vmware

    I'm getting no sound with vmware, not sure why
    Here's what I've been trying to test things:
    $ cat /dev/urandom | aplay
    Playing raw data 'stdin' : Unsigned 8 bit, Rate 8000 Hz, Mono
    Here's some alsa info, if it helps:
    $ aplay -L
    null
    Discard all samples (playback) or generate zero samples (capture)
    default:CARD=AudioPCI
    Ensoniq AudioPCI, ES1371 DAC2/ADC
    Default Audio Device
    sysdefault:CARD=AudioPCI
    Ensoniq AudioPCI, ES1371 DAC2/ADC
    Default Audio Device
    front:CARD=AudioPCI,DEV=0
    Ensoniq AudioPCI, ES1371 DAC2/ADC
    Front speakers
    rear:CARD=AudioPCI,DEV=0
    Ensoniq AudioPCI, ES1371 DAC1
    Rear speakers
    surround40:CARD=AudioPCI,DEV=0
    Ensoniq AudioPCI, ES1371 DAC2/ADC
    4.0 Surround output to Front and Rear speakers
    iec958:CARD=AudioPCI,DEV=0
    Ensoniq AudioPCI, ES1371 DAC2/ADC
    IEC958 (S/PDIF) Digital Audio Output
    Last edited by specular (2014-08-27 19:52:45)

    Don't think I was clear enough, but arch is installed as a vmware guest. Below is the requested output from the alsa-info script:
    upload=true&script=true&cardinfo=
    !!ALSA Information Script v 0.4.63
    !!Script ran on: Wed Aug 27 18:29:05 UTC 2014
    !!Linux Distribution
    NAME="Arch Linux" ID=arch PRETTY_NAME="Arch Linux" HOME_URL="https://www.archlinux.org/" SUPPORT_URL="https://bbs.archlinux.org/" BUG_REPORT_URL="https://bugs.archlinux.org/"
    !!DMI Information
    Manufacturer: VMware, Inc.
    Product Name: VMware7,1
    Product Version: None
    Firmware Version: VMW71.00V.0.B64.1310020058
    !!Kernel Information
    Kernel release: 3.14.2-1-ARCH
    Operating System: GNU/Linux
    Architecture: x86_64
    Processor: unknown
    SMP Enabled: Yes
    !!ALSA Version
    Driver version: k3.14.2-1-ARCH
    Library version: 1.0.27.2
    Utilities version: 1.0.28
    !!Loaded ALSA modules
    snd_ens1371
    !!Sound Servers on this system
    No sound servers found.
    !!Soundcards recognised by ALSA
    0 [AudioPCI ]: ENS1371 - Ensoniq AudioPCI
    Ensoniq AudioPCI ENS1371 at 0x1000, irq 19
    !!PCI Soundcards installed in the system
    02:01.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 02)
    !!Advanced information - PCI Vendor/Device/Subsystem ID's
    02:01.0 0401: 1274:1371 (rev 02)
    Subsystem: 1274:1371
    !!Loaded sound module options
    !!Module: snd_ens1371
    enable : Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y,Y
    id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
    index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
    joystick_port : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
    lineio : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
    spdif : 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
    !!AC97 Codec information
    --startcollapse--
    0-0/0: Cirrus Logic CS4297A rev 3
    PCI Subsys Vendor: 0x1274
    PCI Subsys Device: 0x1371
    Flags: 4
    Capabilities :
    DAC resolution : 16-bit
    ADC resolution : 16-bit
    3D enhancement : No 3D Stereo Enhancement
    Current setup
    Mic gain : +0dB [+0dB]
    POP path : pre 3D
    Sim. stereo : off
    3D enhancement : off
    Loudness : off
    Mono output : MIX
    Mic select : Mic1
    ADC/DAC loopback : off
    0:00 = 0000
    0:02 = 0e8e
    0:04 = 0000
    0:06 = 0000
    0:08 = 0000
    0:0a = 0000
    0:0c = bfbf
    0:0e = bfbf
    0:10 = bfbf
    0:12 = bfbf
    0:14 = bfbf
    0:16 = bfbf
    0:18 = 28a8
    0:1a = 0000
    0:1c = 0808
    0:1e = 0000
    0:20 = 0000
    0:22 = 0000
    0:24 = 0000
    0:26 = 000f
    0:28 = 0000
    0:2a = 0000
    0:2c = 0000
    0:2e = 0000
    0:30 = 0000
    0:32 = 0000
    0:34 = 0000
    0:36 = 0000
    0:38 = 0000
    0:3a = 0000
    0:3c = 0000
    0:3e = 0000
    0:40 = 0000
    0:42 = 0000
    0:44 = 0000
    0:46 = 0000
    0:48 = 0000
    0:4a = 0000
    0:4c = 0000
    0:4e = 0000
    0:50 = 0000
    0:52 = 0000
    0:54 = 0000
    0:56 = 0000
    0:58 = 0000
    0:5a = 0000
    0:5c = 0000
    0:5e = 0000
    0:60 = 0000
    0:62 = 0000
    0:64 = 0000
    0:66 = 0000
    0:68 = 0000
    0:6a = 0000
    0:6c = 0000
    0:6e = 0000
    0:70 = 0000
    0:72 = 0000
    0:74 = 0000
    0:76 = 0000
    0:78 = 0000
    0:7a = 0000
    0:7c = 4352
    0:7e = 5913
    --endcollapse--
    !!ALSA Device nodes
    crw-rw----+ 1 root audio 116, 6 Aug 28 01:35 /dev/snd/controlC0
    crw-rw----+ 1 root audio 116, 2 Aug 28 01:35 /dev/snd/midiC0D0
    crw-rw----+ 1 root audio 116, 5 Aug 28 01:35 /dev/snd/pcmC0D0c
    crw-rw----+ 1 root audio 116, 4 Aug 28 03:28 /dev/snd/pcmC0D0p
    crw-rw----+ 1 root audio 116, 3 Aug 28 01:35 /dev/snd/pcmC0D1p
    crw-rw----+ 1 root audio 116, 1 Aug 28 01:35 /dev/snd/seq
    crw-rw----+ 1 root audio 116, 33 Aug 28 01:35 /dev/snd/timer
    /dev/snd/by-path:
    total 0
    drwxr-xr-x 2 root root 60 Aug 28 01:35 .
    drwxr-xr-x 3 root root 200 Aug 28 01:35 ..
    lrwxrwxrwx 1 root root 12 Aug 28 01:35 pci-0000:02:01.0 -> ../controlC0
    !!Aplay/Arecord output
    APLAY
    **** List of PLAYBACK Hardware Devices ****
    card 0: AudioPCI [Ensoniq AudioPCI], device 0: ES1371/1 [ES1371 DAC2/ADC]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: AudioPCI [Ensoniq AudioPCI], device 1: ES1371/2 [ES1371 DAC1]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    ARECORD
    **** List of CAPTURE Hardware Devices ****
    card 0: AudioPCI [Ensoniq AudioPCI], device 0: ES1371/1 [ES1371 DAC2/ADC]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    !!Amixer output
    !!-------Mixer controls for card 0 [AudioPCI]
    Card hw:0 'AudioPCI'/'Ensoniq AudioPCI ENS1371 at 0x1000, irq 19'
    Mixer name : 'Cirrus Logic CS4297A rev 3'
    Components : 'AC97a:43525913'
    Controls : 26
    Simple ctrls : 13
    Simple mixer control 'Master',0
    Capabilities: pvolume pswitch pswitch-joined
    Playback channels: Front Left - Front Right
    Limits: Playback 0 - 63
    Mono:
    Front Left: Playback 49 [78%] [-21.00dB] [on]
    Front Right: Playback 49 [78%] [-21.00dB] [on]
    Simple mixer control 'PCM',0
    Capabilities: pvolume pswitch pswitch-joined
    Playback channels: Front Left - Front Right
    Limits: Playback 0 - 63
    Mono:
    Front Left: Playback 23 [37%] [0.00dB] [on]
    Front Right: Playback 23 [37%] [0.00dB] [on]
    Simple mixer control 'Line',0
    Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
    Capture exclusive group: 0
    Playback channels: Front Left - Front Right
    Capture channels: Front Left - Front Right
    Limits: Playback 0 - 63
    Front Left: Playback 0 [0%] [-34.50dB] [off] Capture [off]
    Front Right: Playback 0 [0%] [-34.50dB] [off] Capture [off]
    Simple mixer control 'CD',0
    Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
    Capture exclusive group: 0
    Playback channels: Front Left - Front Right
    Capture channels: Front Left - Front Right
    Limits: Playback 0 - 63
    Front Left: Playback 0 [0%] [-34.50dB] [off] Capture [off]
    Front Right: Playback 0 [0%] [-34.50dB] [off] Capture [off]
    Simple mixer control 'Mic',0
    Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
    Capture exclusive group: 0
    Playback channels: Front Left - Front Right
    Capture channels: Front Left - Front Right
    Limits: Playback 0 - 63
    Front Left: Playback 0 [0%] [-34.50dB] [off] Capture [on]
    Front Right: Playback 0 [0%] [-34.50dB] [off] Capture [on]
    Simple mixer control 'Mic Boost (+20dB)',0
    Capabilities: pswitch pswitch-joined
    Playback channels: Mono
    Mono: Playback [off]
    Simple mixer control 'Video',0
    Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
    Capture exclusive group: 0
    Playback channels: Front Left - Front Right
    Capture channels: Front Left - Front Right
    Limits: Playback 0 - 63
    Front Left: Playback 0 [0%] [-34.50dB] [off] Capture [off]
    Front Right: Playback 0 [0%] [-34.50dB] [off] Capture [off]
    Simple mixer control 'Phone',0
    Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
    Capture exclusive group: 0
    Playback channels: Front Left - Front Right
    Capture channels: Front Left - Front Right
    Limits: Playback 0 - 63
    Front Left: Playback 0 [0%] [-34.50dB] [off] Capture [off]
    Front Right: Playback 0 [0%] [-34.50dB] [off] Capture [off]
    Simple mixer control 'IEC958',0
    Capabilities: pswitch pswitch-joined
    Playback channels: Mono
    Mono: Playback [off]
    Simple mixer control 'Aux',0
    Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
    Capture exclusive group: 0
    Playback channels: Front Left - Front Right
    Capture channels: Front Left - Front Right
    Limits: Playback 0 - 63
    Front Left: Playback 0 [0%] [-34.50dB] [off] Capture [off]
    Front Right: Playback 0 [0%] [-34.50dB] [off] Capture [off]
    Simple mixer control 'Capture',0
    Capabilities: cvolume cswitch cswitch-joined
    Capture channels: Front Left - Front Right
    Limits: Capture 0 - 15
    Front Left: Capture 8 [53%] [12.00dB] [on]
    Front Right: Capture 8 [53%] [12.00dB] [on]
    Simple mixer control 'Mix',0
    Capabilities: cswitch cswitch-exclusive
    Capture exclusive group: 0
    Capture channels: Front Left - Front Right
    Front Left: Capture [off]
    Front Right: Capture [off]
    Simple mixer control 'Mix Mono',0
    Capabilities: cswitch cswitch-exclusive
    Capture exclusive group: 0
    Capture channels: Front Left - Front Right
    Front Left: Capture [off]
    Front Right: Capture [off]
    !!Alsactl output
    --startcollapse--
    state.AudioPCI {
    control.1 {
    iface MIXER
    name 'Master Playback Switch'
    value true
    comment {
    access 'read write'
    type BOOLEAN
    count 1
    control.2 {
    iface MIXER
    name 'Master Playback Volume'
    value.0 49
    value.1 49
    comment {
    access 'read write'
    type INTEGER
    count 2
    range '0 - 63'
    dbmin -9450
    dbmax 0
    dbvalue.0 -2100
    dbvalue.1 -2100
    control.3 {
    iface MIXER
    name 'Phone Playback Switch'
    value false
    comment {
    access 'read write'
    type BOOLEAN
    count 1
    control.4 {
    iface MIXER
    name 'Phone Playback Volume'
    value.0 0
    value.1 0
    comment {
    access 'read write'
    type INTEGER
    count 2
    range '0 - 63'
    dbmin -3450
    dbmax 6000
    dbvalue.0 -3450
    dbvalue.1 -3450
    control.5 {
    iface MIXER
    name 'Mic Playback Switch'
    value false
    comment {
    access 'read write'
    type BOOLEAN
    count 1
    control.6 {
    iface MIXER
    name 'Mic Playback Volume'
    value.0 0
    value.1 0
    comment {
    access 'read write'
    type INTEGER
    count 2
    range '0 - 63'
    dbmin -3450
    dbmax 6000
    dbvalue.0 -3450
    dbvalue.1 -3450
    control.7 {
    iface MIXER
    name 'Mic Boost (+20dB)'
    value false
    comment {
    access 'read write'
    type BOOLEAN
    count 1
    control.8 {
    iface MIXER
    name 'Line Playback Switch'
    value false
    comment {
    access 'read write'
    type BOOLEAN
    count 1
    control.9 {
    iface MIXER
    name 'Line Playback Volume'
    value.0 0
    value.1 0
    comment {
    access 'read write'
    type INTEGER
    count 2
    range '0 - 63'
    dbmin -3450
    dbmax 6000
    dbvalue.0 -3450
    dbvalue.1 -3450
    control.10 {
    iface MIXER
    name 'CD Playback Switch'
    value false
    comment {
    access 'read write'
    type BOOLEAN
    count 1
    control.11 {
    iface MIXER
    name 'CD Playback Volume'
    value.0 0
    value.1 0
    comment {
    access 'read write'
    type INTEGER
    count 2
    range '0 - 63'
    dbmin -3450
    dbmax 6000
    dbvalue.0 -3450
    dbvalue.1 -3450
    control.12 {
    iface MIXER
    name 'Video Playback Switch'
    value false
    comment {
    access 'read write'
    type BOOLEAN
    count 1
    control.13 {
    iface MIXER
    name 'Video Playback Volume'
    value.0 0
    value.1 0
    comment {
    access 'read write'
    type INTEGER
    count 2
    range '0 - 63'
    dbmin -3450
    dbmax 6000
    dbvalue.0 -3450
    dbvalue.1 -3450
    control.14 {
    iface MIXER
    name 'Aux Playback Switch'
    value false
    comment {
    access 'read write'
    type BOOLEAN
    count 1
    control.15 {
    iface MIXER
    name 'Aux Playback Volume'
    value.0 0
    value.1 0
    comment {
    access 'read write'
    type INTEGER
    count 2
    range '0 - 63'
    dbmin -3450
    dbmax 6000
    dbvalue.0 -3450
    dbvalue.1 -3450
    control.16 {
    iface MIXER
    name 'PCM Playback Switch'
    value true
    comment {
    access 'read write'
    type BOOLEAN
    count 1
    control.17 {
    iface MIXER
    name 'PCM Playback Volume'
    value.0 23
    value.1 23
    comment {
    access 'read write'
    type INTEGER
    count 2
    range '0 - 63'
    dbmin -3450
    dbmax 6000
    dbvalue.0 0
    dbvalue.1 0
    control.18 {
    iface MIXER
    name 'Capture Source'
    value.0 Mic
    value.1 Mic
    comment {
    access 'read write'
    type ENUMERATED
    count 2
    item.0 Mic
    item.1 CD
    item.2 Video
    item.3 Aux
    item.4 Line
    item.5 Mix
    item.6 'Mix Mono'
    item.7 Phone
    control.19 {
    iface MIXER
    name 'Capture Switch'
    value true
    comment {
    access 'read write'
    type BOOLEAN
    count 1
    control.20 {
    iface MIXER
    name 'Capture Volume'
    value.0 8
    value.1 8
    comment {
    access 'read write'
    type INTEGER
    count 2
    range '0 - 15'
    dbmin 0
    dbmax 2250
    dbvalue.0 1200
    dbvalue.1 1200
    control.21 {
    iface MIXER
    name 'IEC958 Playback Con Mask'
    value '0fff000f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
    comment {
    access read
    type IEC958
    count 1
    control.22 {
    iface MIXER
    name 'IEC958 Playback Pro Mask'
    value cf00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
    comment {
    access read
    type IEC958
    count 1
    control.23 {
    iface MIXER
    name 'IEC958 Playback Default'
    value '0082000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
    comment {
    access 'read write'
    type IEC958
    count 1
    control.24 {
    iface MIXER
    name 'IEC958 Playback Switch'
    value false
    comment {
    access 'read write'
    type BOOLEAN
    count 1
    control.25 {
    iface PCM
    name 'Playback Channel Map'
    value.0 0
    value.1 0
    comment {
    access read
    type INTEGER
    count 2
    range '0 - 36'
    control.26 {
    iface PCM
    device 1
    name 'Playback Channel Map'
    value.0 0
    value.1 0
    comment {
    access read
    type INTEGER
    count 2
    range '0 - 36'
    --endcollapse--
    !!All Loaded Modules
    Module
    fuse
    vmw_vsock_vmci_transport
    vsock
    nls_iso8859_1
    nls_cp437
    vfat
    fat
    coretemp
    hwmon
    joydev
    snd_ens1371
    mousedev
    snd_ac97_codec
    hid_generic
    ac97_bus
    gameport
    snd_rawmidi
    snd_seq_device
    snd_pcm
    snd_timer
    snd
    crct10dif_pclmul
    crc32_pclmul
    crc32c_intel
    ghash_clmulni_intel
    soundcore
    usbhid
    aesni_intel
    aes_x86_64
    lrw
    gf128mul
    glue_helper
    hid
    psmouse
    vmwgfx
    ppdev
    ablk_helper
    cryptd
    evdev
    vmxnet3
    mac_hid
    pcspkr
    vmw_balloon
    i2c_piix4
    serio_raw
    ttm
    microcode
    drm
    processor
    i2c_core
    intel_agp
    intel_gtt
    vmw_vmci
    parport_pc
    parport
    battery
    shpchp
    ac
    button
    ext4
    crc16
    mbcache
    jbd2
    dm_mod
    sd_mod
    crc_t10dif
    crct10dif_common
    sr_mod
    cdrom
    ata_generic
    pata_acpi
    atkbd
    libps2
    ata_piix
    libata
    mptsas
    scsi_transport_sas
    mptscsih
    uhci_hcd
    ehci_pci
    scsi_mod
    ehci_hcd
    usbcore
    mptbase
    usb_common
    floppy
    i8042
    serio
    !!ALSA/HDA dmesg
    [ 5.342713] mousedev: PS/2 mouse device common for all mice
    [ 5.345140] snd_ens1371 0000:02:01.0: enabling device (0000 -> 0001)
    [ 5.391722] intel_rapl: domain package energy ctr 0:0 not working, skip
    Last edited by specular (2014-08-27 18:45:55)

  • "Dirty" sound after Kernel update. [SOLVED]

    First of all my sound have always been "dirty" on Linux, like if the speakers/headphones where broken. However, earlier today I configured my sound for the first time on Arch and had a terrific sound! Perfect and clear. However, after I updated, my sound configuration was messed up and now, after re-configuring it, it has this "broken" sound again. Anything I can do about it?
    /Richard

    So I won't have to re-configure the sound again if I get kernel -8? Like 5 minutes after I got kernel -7 I saw there was a new update but with my recent problem with kernel -7 kept me from updating. My sound works almost perfectly it's just that there's this tiny buzzing sound in the background all the time.

  • MBP won't re-install Tiger  - shuts withs Kernel panic

    Hello everybody! My Problem started some days ago: My MBP started shutting down with Kernel-panics while closing iPhoto. A week ago it wouldn't even start up. Since then it displays the "Restart your Computer"-message approximately 10 seconds after starting the machine. I tried re-installing the OS using the Original-Dvds. The same Problem appears some seconds later while trying to boot from the DVD. So I can't even try to re-install, because I don't even see an Install-Screen. The Book works fine under both Windows through Bootcamp and KuBUNTU via Live-CD.
    Anyone an idea what do to??
    Thanks in advance
    Martin

    It sounds to me like a hardware problem, perhaps in firmware that is used by MacOS but not by Windows. If you had been able to boot the installer disc, I would have suggested running the hardware test that you can find in its menus before you start installing.
    You might try zapping the PRAM, and perhaps removing and re-inserting your RAM. There are instructions for both these operations on the Apple support web site. But I would not be surprised if you are forced to bring your MBP in to a service depot.

  • [solved] Lost surround 5.1 with kernel version 3.3.1

    Hi!  Since i've upgrade to kernel 3.3.1, i lost surround sound, even if pulseaudio says that surround 5.1 is enable.
    My modprobe.d dir contains a special file (alsa-base.conf) that contains theses lines:
    alias snd-card-0 snd-hda-intel
    options snd-hda-intel model=acer-aspire-8930g power_save=0 power_save_controller=N
    My laptop is a acer 8940g and it used to work well since kernel 2.6.30.
    I use pulseaudio since a long time ago and likes it.
    Here's output from aplay -l
    aplay -l
    **** Liste des Périphériques Matériels PLAYBACK ****
    carte 0: Intel [HDA Intel], périphérique 0: ALC889 Analog [ALC889 Analog]
      Sous-périphériques: 1/1
      Sous-périphérique #0: subdevice #0
    carte 0: Intel [HDA Intel], périphérique 1: ALC889 Digital [ALC889 Digital]
      Sous-périphériques: 1/1
      Sous-périphérique #0: subdevice #0
    carte 1: NVidia [HDA NVidia], périphérique 3: HDMI 0 [HDMI 0]
      Sous-périphériques: 1/1
      Sous-périphérique #0: subdevice #0
    carte 1: NVidia [HDA NVidia], périphérique 7: HDMI 0 [HDMI 0]
      Sous-périphériques: 1/1
      Sous-périphérique #0: subdevice #0
    carte 1: NVidia [HDA NVidia], périphérique 8: HDMI 0 [HDMI 0]
      Sous-périphériques: 1/1
      Sous-périphérique #0: subdevice #0
    carte 1: NVidia [HDA NVidia], périphérique 9: HDMI 0 [HDMI 0]
      Sous-périphériques: 1/1
      Sous-périphérique #0: subdevice #0
    Does anyone knows about this problem?  The only solution i had right now is to revert back to kernel 3.2.14.
    Thanks!
    Last edited by danym (2012-04-12 02:04:43)

    I have an 8930g, so pretty close to you.
    My surround sound works. I use alsa-driver 1.0.25, rather than the in-kernel ALSA.
    So, my kernel config is:
    $ zgrep SOUND /proc/config.gz
    CONFIG_SOUND=m
    # CONFIG_SOUND_OSS_CORE is not set
    # CONFIG_SOUND_PRIME is not set
    $ zgrep SND /proc/config.gz
    # CONFIG_SND is not set
    And alsa-driver is compiled with:
    ./configure --prefix=/usr --with-isapnp=no --with-sequencer=yes --with-oss=no --with-pcm-oss-plugins=no --with-debug=none --with-kernel=/usr/src/linux --with-cards=hda-intel,hrtimer --with-card-options=seq-hrtimer-default,hda-codec-realtek,hda-hwdep,hda-reconfig,hda-patch-loader,hda-enable-realtek-quirks,hda-codec-analog,hda-prealloc-size=2048

  • No sound with ALSA & Fluidsynth enabled (as normal user)

    Ahoy!
    I'm using pure ALSA (no pulseaudio) and I have a problem that when I start Fluidsynth I have no sound anymore. Without starting Fluidsynth, everything is working just fine.
    I can play sound with Fluidsynth enabled though when I add myself to the audio group. However, I didn't need to do that in the past. In fact, I have Fluidsynth up and running with ALSA on my laptop and everything works just fine and I remember reading in the wiki that the user is not supposed to be added to the audio group.
    Here's some information:
    aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: A2G [AuzenTech X-Meridian 2G], device 0: Multichannel [Multichannel]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 0: A2G [AuzenTech X-Meridian 2G], device 1: Digital [Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    cat /proc/asound/cards
    0 [A2G ]: CMI8788 - AuzenTech X-Meridian 2G
    C-Media Oxygen HD Audio at 0xc000, irq 17
    1 [NVidia ]: HDA-Intel - HDA NVidia
    HDA NVidia at 0xfa080000 irq 17
    aconnect -o
    client 14: 'Midi Through' [type=kernel]
    0 'Midi Through Port-0'
    client 16: 'AuzenTech X-Meridian 2G' [type=kernel]
    0 'AuzenTech X-Meridian 2G MIDI'
    And here's how it looks like when I start Fluidsynth (including the error message I get):
    USER@PROBLEM ~ % speaker-test -c 2
    speaker-test 1.0.28
    Playback device is default
    Stream parameters are 48000Hz, S16_LE, 2 channels
    Using 16 octaves of pink noise
    Rate set to 48000Hz (requested 48000Hz)
    Buffer size range from 2048 to 16384
    Period size range from 1024 to 1024
    Using max buffer size 16384
    Periods = 4
    was set period_size = 1024
    was set buffer_size = 16384
    0 - Front Left
    1 - Front Right
    ^CWrite error: -4,Interrupted system call
    xrun_recovery failed: -4,Interrupted system call
    Transfer failed: Interrupted system call
    USER@PROBLEM ~ % sudo systemctl start fluidsynth.service
    USER@PROBLEM ~ % sudo systemctl status fluidsynth.service
    ● fluidsynth.service - FluidSynth Daemon
    Loaded: loaded (/usr/lib/systemd/system/fluidsynth.service; disabled)
    Active: active (running) since Sat 2014-10-04 10:11:18 UTC; 6s ago
    Main PID: 1017 (fluidsynth)
    CGroup: /system.slice/fluidsynth.service
    └─1017 /usr/bin/fluidsynth -is -a alsa -m alsa_seq -r 48000 /usr/s...
    Oct 04 10:11:19 PROBLEM fluidsynth[1017]: fluidsynth: warning: Requested...d
    Hint: Some lines were ellipsized, use -l to show in full.
    USER@PROBLEM ~ % speaker-test -c 2
    speaker-test 1.0.28
    Playback device is default
    Stream parameters are 48000Hz, S16_LE, 2 channels
    Using 16 octaves of pink noise
    ALSA lib pcm_dmix.c:989:(snd_pcm_dmix_open) unable to create IPC semaphore
    Playback open error: -13,Permission denied
    aconnect -o
    client 14: 'Midi Through' [type=kernel]
    0 'Midi Through Port-0'
    client 16: 'AuzenTech X-Meridian 2G' [type=kernel]
    0 'AuzenTech X-Meridian 2G MIDI'
    client 128: 'FLUID Synth (1017)' [type=user]
    0 'Synth input port (1017:0)'
    Any ideas?
    Last edited by Janusz11 (2014-10-04 08:26:54)

    Thanks. I've set Fluidsynth up the way it is described in the wiki (FluidSynth). If I'm not mistaken it is already started with the "-a alsa" option through the config file (SYNTHOPTS="-is -a alsa -m alsa_seq -r 48000" ).
    Well, since adding the user to the audio group fixes the problem I'll do that now.

  • I am trying to connect my Macbook pro 2010 to my Samsung HDTV using a mini display port to hdtv cable. Trying to play a slide show in IPhoto but I only get sound with no picture. Does anyone have any suggestions?

    I am trying to connect my Macbook pro 2010 to my Samsung HDTV using a mini display port to hdtv cable. Trying to play a slide show in IPhoto but I only get sound with no picture. Does anyone have any suggestions?

    I keep saying this over and over, in the hope that people who do a search will find it.  Apple cannot possibly test for or be reponsible for the bazillion combinations of adapter, cables, and TV's out there.  The only monitors that are 100% guaranteed to work with the MacBook Pro are the Cinema Displays and Thunderbolt Displays, because, they're made by Apple.  They're expensive, but they work perfectly.
    My guess is that you bought a cheap MDP to HDMI cable, or have a defective one.  From my reading of these boards over the past few months, cheap cables have a high failure rate.  And the regular priced ones have only a slightly less of one.  Try a new one.  Make sure you do not damage the Thunderbolt port.

  • My iPad does not have sound when on the Internet, including YouTube, but does have sound with iTunes and other apps.  How can I correct this?

    My iPad does not have sound when on the Internet, including YouTube, but does have sound with iTunes and other apps.  How can I correct this?

    If you are sure that you have sound in other apps - and if you can still hear keyboard clicks and get notifications, then system sounds are not muted. Try this and see if it works.
    Close all apps completely and reboot the iPad.
    Go to the home screen first by tapping the home button. Double tap the home button and the recents tray will appear with all of your recent apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Laptop mode tools problem with kernel 3.0

    today I just updated the system and my laptop runs dramatically hotter after that. I read the archwiki, it does talk about the laptop mode tools problem with kernel 3.0 but when I opened the file /usr/sbin/laptop_mode, the lines which the wiki mentions are not there. Does anyone here have the same problem and can you offer the solution?
    Here is my /usr/sbin/laptop_mode
    #! /bin/sh
    # Script to start or stop laptop_mode, and to control various settings of the
    # kernel, hardware etc. that influence power consumption.
    # This script is a part of Laptop Mode Tools. If you are running a supported
    # power management daemon, this script will be automatically called on power
    # state change.
    # Configure laptop mode tools in /etc/laptop-mode/laptop-mode.conf, and in
    # the broken-out config files in /etc/laptop-mode/conf.d.
    # Please consult the manual pages laptop-mode.conf(8) and laptop_mode(8) for
    # additional information.
    # Maintainer: Ritesh Raj Sarraf ([email protected])
    # Original Author: Bart Samwel ([email protected])
    # Project home page: http://samwel.tk/laptop_mode
    # Contributors to this script: Bart Samwel
    # Kiko Piris
    # Micha Feigin
    # Andrew Morton
    # Herve Eychenne
    # Dax Kelson
    # Jan Polacek
    # ... and many others that I've stopped
    # keeping track of.
    # Based on a script for Linux 2.4 written by Jens Axboe.
    set -a
    # The laptop mode tools version number. Extracted by the installer makefile
    # as well, so don't change the format!
    LMTVERSION=1.59
    # This script is loaded from multiple scripts to set the config defaults
    # and to read the configuration on top of those. Only when the command is
    # recognized does this script do anything else.
    VERBOSE_OUTPUT=0
    ENABLE_LAPTOP_MODE_ON_BATTERY=1
    ENABLE_LAPTOP_MODE_ON_AC=0
    ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=0
    PARTITIONS="auto /dev/mapper/*"
    LM_BATT_MAX_LOST_WORK_SECONDS=600
    LM_AC_MAX_LOST_WORK_SECONDS=360
    DEF_MAX_AGE=30
    LM_READAHEAD=3072
    NOLM_READAHEAD=128
    CONTROL_READAHEAD=1
    CONTROL_NOATIME=0
    USE_RELATIME=1
    CONTROL_HD_IDLE_TIMEOUT=1
    LM_AC_HD_IDLE_TIMEOUT=4 # 20 seconds
    LM_BATT_HD_IDLE_TIMEOUT=4 # 20 seconds
    NOLM_HD_IDLE_TIMEOUT=244 # 2 hours
    DEF_UPDATE=5
    DEF_XFS_AGE_BUFFER=15
    DEF_XFS_SYNC_INTERVAL=30
    DEF_XFS_BUFD_INTERVAL=1
    XFS_HZ=100
    CONTROL_MOUNT_OPTIONS=1
    BATT_HD_POWERMGMT=1
    LM_AC_HD_POWERMGMT=254
    NOLM_AC_HD_POWERMGMT=254
    CONTROL_HD_POWERMGMT=0
    CONTROL_HD_WRITECACHE=0
    NOLM_AC_HD_WRITECACHE=1
    NOLM_BATT_HD_WRITECACHE=0
    LM_HD_WRITECACHE=0
    LM_DIRTY_RATIO=60
    LM_DIRTY_BACKGROUND_RATIO=1
    NOLM_DIRTY_BACKGROUND_RATIO=10
    NOLM_DIRTY_RATIO=40
    LM_SECONDS_BEFORE_SYNC=2
    BATT_CPU_MAXFREQ=medium
    BATT_CPU_MINFREQ=slowest
    BATT_CPU_GOVERNOR=ondemand
    BATT_CPU_IGNORE_NICE_LOAD=1
    LM_AC_CPU_MAXFREQ=fastest
    LM_AC_CPU_MINFREQ=slowest
    LM_AC_CPU_GOVERNOR=ondemand
    LM_AC_CPU_IGNORE_NICE_LOAD=1
    NOLM_AC_CPU_MAXFREQ=fastest
    NOLM_AC_CPU_MINFREQ=slowest
    NOLM_AC_CPU_GOVERNOR=ondemand
    NOLM_AC_CPU_IGNORE_NICE_LOAD=0
    CONTROL_CPU_FREQUENCY=0
    HD="/dev/[hs]d[abcdefgh]"
    CONTROL_SYSLOG_CONF=0
    LM_AC_SYSLOG_CONF=/etc/syslog-on-ac-with-lm.conf
    NOLM_AC_SYSLOG_CONF=/etc/syslog-on-ac-without-lm.conf
    BATT_SYSLOG_CONF=/etc/syslog-on-battery.conf
    SYSLOG_CONF_SIGNAL_PROGRAM=syslogd
    SYSLOG_CONF=/etc/syslog.conf
    CONTROL_DPMS_STANDBY=0
    BATT_DPMS_STANDBY=300
    LM_AC_DPMS_STANDBY=1200
    NOLM_AC_DPMS_STANDBY=1200
    CONTROL_CPU_THROTTLING=0
    BATT_CPU_THROTTLING=medium
    LM_AC_CPU_THROTTLING=minimum
    NOLM_AC_CPU_THROTTLING=minimum
    CONTROL_START_STOP=1
    CONTROL_TERMINAL=0
    TERMINALS="/dev/vc/1 /dev/vcs1"
    BATT_TERMINAL_BLANK_MINUTES=1
    BATT_TERMINAL_POWERDOWN_MINUTES=2
    LM_AC_TERMINAL_BLANK_MINUTES=10
    LM_AC_TERMINAL_POWERDOWN_MINUTES=10
    NOLM_AC_TERMINAL_BLANK_MINUTES=10
    NOLM_AC_TERMINAL_POWERDOWN_MINUTES=50
    ENABLE_AUTO_HIBERNATION=0
    HIBERNATE_COMMAND=/usr/sbin/hibernate
    AUTO_HIBERNATION_ON_CRITICAL_BATTERY_LEVEL=1
    DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1
    AUTO_HIBERNATION_BATTERY_CHARGE_MAH=0
    AUTO_HIBERNATION_BATTERY_CHARGE_MWH=0
    MINIMUM_BATTERY_CHARGE_MAH=0
    MINIMUM_BATTERY_CHARGE_MWH=0
    ASSUME_SCSI_IS_SATA=1
    CONTROL_BRIGHTNESS=0
    BATT_BRIGHTNESS_COMMAND=false
    LM_AC_BRIGHTNESS_COMMAND=false
    NOLM_AC_BRIGHTNESS_COMMAND=false
    LOG_TO_SYSLOG=1
    DEBUG=0
    ENABLE_LAPTOP_MODE_TOOLS=1
    # Initialize the PATH Variable
    export PATH="${PATH}":/bin:/sbin:/usr/bin:/usr/sbin
    # This is a 2 phase locking approach. LMT_REQ_LOCK is the outer lock and LMT_INVOC_LOCK is the inner lock
    # We take this approach to ensure the scenario that, "At any point when an event occurs (AC/BATT), the
    # kernel can generate multiple events spanning over a couple of events. The first event is honored and
    # lmt executes. If the last event triggered at the 9th second, there is a fair chance that a good amount
    # of state change would have occured in the OS, to honor that state, we keep an outer lock (LMT_REQ_LOCK)
    # handy, so that those changes can also be applied and not forgotten.
    # Workflow:
    # Event-1 is generated and lmt executes (lmt runtime could span 5-10 seconds)
    # At seventh second, 4 events generate. But Event-1 is still running.
    # We don't want to discard all the remaining 4 events, but at least honor 1 so that we can act to the changes
    # that occured in the last 7 seconds.
    # So, Event-2 acquire LMT_REQ_LOCK and waits to acquire LMT_INVOC_LOCK (which is acquire by Event-1)
    LMT_REQ_LOCK="/var/lock/lmt-req.lock"
    LMT_INVOC_LOCK="/var/lock/lmt-invoc.lock"
    FLOCK=`which flock`
    checkint ()
    # $1 arg should be the string/integer
    # that you want to check for as an integer.
    echo $1 | grep "[^0-9]" > /dev/null 2>&1
    return $?;
    # Returns 1 if it is an integer
    # Function to handle logging
    LOGGER=`which logger`;
    log ()
    # $1 should be msg type
    # $2 should be the real msg
    if [ x$LOG_TO_SYSLOG = x1 ]; then
    # NOTE: Add the check on $2 being empty, once you are confident
    # that there aren't any bugs in logging. And no bugs in executing
    # modules and logging
    if [ -x $LOGGER -a "$1" != "STATUS" ]; then
    #if [ -z $2 ]; then
    # continue
    #elif [ "$1" = "MSG" ]; then
    if [ "$1" = "MSG" ]; then
    logger -p daemon.info -t laptop-mode "$2";
    elif [ "$1" = "ERR" ]; then
    logger -p daemon.err -t laptop-mode "$2";
    elif [ "$1" = "VERBOSE" ]; then
    if [ x$VERBOSE_OUTPUT = x1 ]; then
    logger -p daemon.debug -t laptop-mode "$2";
    fi
    else
    logger -p daemon.notice -t laptop-mode "$2";
    fi
    fi
    fi
    if [ "$1" = "VERBOSE" ]; then
    $LM_VERBOSE && echo "$2" >/dev/fd/2;
    elif [ "$1" = "ERR" ]; then
    echo "$2" >/dev/fd/2;
    else
    # Message of type MSG and STATUS can go to stdout.
    echo "$2" >/dev/fd/1;
    fi
    enableDebug ()
    # Check if debug is enabled
    if [ x$(($(basename $1 | cut -d . -f1 | tr "[:lower:]" "[:upper:]" | sed 's/-/_/g')_DEBUG)) = x1 ]; then
    set -vx
    fi
    disableDebug ()
    # Check if debug is enabled
    if [ x$(($(basename $1 | cut -d . -f1 | tr "[:lower:]" "[:upper:]" | sed 's/-/_/g')_DEBUG)) = x1 ]; then
    set +vx
    fi
    # No default on these ones -- we need to detect if they have been set, for
    # backward compatibility with MINIMUM_BATTERY_MINUTES etc.
    AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT=
    MINIMUM_BATTERY_CHARGE_PERCENT=
    # Backward compatibility variable that is sometimes
    # set externally (Debian init system)
    unset VERBOSE
    lmt_load_config ()
    # Source config. Some config settings have been moved from the main config file
    # to modular configuration files, and to support existing laptop-mode.conf
    # files from earlier versions, we source the modular configuration files FIRST.
    if [ -d /etc/laptop-mode/conf.d ] ; then
    for CONF in /etc/laptop-mode/conf.d/*.conf ; do
    if [ -r "$CONF" ] ; then
    . "$CONF"
    #Handle individual module debug settings
    if [ "$DEBUG" -eq 1 ]; then
    export $(basename $CONF | cut -d . -f1 | tr "[:lower:]" "[:upper:]" | sed 's/-/_/g')_DEBUG=1
    log "VERBOSE" "Enabling debug mode for module $CONF"
    fi
    DEBUG=0
    else
    log "MSG" "Warning: Configuration file $CONF is not readable, skipping."
    fi
    done
    fi
    if [ -r /etc/laptop-mode/laptop-mode.conf ] ; then
    . /etc/laptop-mode/laptop-mode.conf
    else
    log "ERR" "$0: Configuration file /etc/laptop-mode/laptop-mode.conf not present or not readable."
    exit 1
    fi
    if [ x$ENABLE_LAPTOP_MODE_TOOLS = x0 ]; then
    log "MSG" "laptop-mode-tools is disabled in config file. Exiting"
    exit 0;
    fi
    # Add a simple bash debug mode switch
    if [ "$DEBUG" -eq 1 ]; then
    set -vx;
    fi
    # Support for old config settings
    if [ "$AC_HD" != "" ] ; then
    AC_HD_WITHOUT_LM="$AC_HD"
    AC_HD_WITH_LM="$AC_HD"
    fi
    if [ "$VERBOSE" != "" ] ; then
    VERBOSE_OUTPUT="$VERBOSE"
    fi
    if [ "$CPU_MAXFREQ" != "" ] ; then
    BATT_CPU_MAXFREQ="$CPU_MAXFREQ"
    fi
    if [ "$MAX_AGE" != "" ] ; then
    LM_BATT_MAX_LOST_WORK_SECONDS="$MAX_AGE"
    LM_AC_MAX_LOST_WORK_SECONDS="$MAX_AGE"
    fi
    if [ "$DEF_AGE" != "" ] ; then
    DEF_MAX_AGE="$DEF_AGE"
    fi
    if [ "$LAPTOP_MODE_ALWAYS_ON" != "" ] ; then
    ENABLE_LAPTOP_MODE_ALWAYS="$LAPTOP_MODE_ALWAYS_ON"
    fi
    if [ "$LM_WHEN_LID_CLOSED" != "" ] ; then
    ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED="$LM_WHEN_LID_CLOSED"
    fi
    if [ "$REMOUNT_PARTITIONS" != "" ] ; then
    PARTITIONS="$REMOUNT_PARTITIONS"
    fi
    if [ "$READAHEAD" != "" ] ; then
    LM_READAHEAD="$READAHEAD"
    fi
    if [ "$DO_REMOUNT_NOATIME" != "" ] ; then
    CONTROL_NOATIME="$DO_REMOUNT_NOATIME"
    fi
    if [ "$DO_HD" != "" ] ; then
    CONTROL_HD_IDLE_TIMEOUT="$DO_HD"
    fi
    if [ "$AC_HD_WITH_LM" != "" ] ; then
    LM_AC_HD_IDLE_TIMEOUT="$AC_HD_WITH_LM"
    fi
    if [ "$AC_HD_WITHOUT_LM" != "" ] ; then
    NOLM_HD_IDLE_TIMEOUT="$AC_HD_WITHOUT_LM"
    fi
    if [ "$BATT_HD" != "" ] ; then
    LM_BATT_HD_IDLE_TIMEOUT="$BATT_HD"
    fi
    if [ "$DO_REMOUNTS" != "" ] ; then
    CONTROL_MOUNT_OPTIONS="$DO_REMOUNTS"
    fi
    if [ "$DO_HD_POWERMGMT" != "" ] ; then
    CONTROL_HD_POWERMGMT="$DO_HD_POWERMGMT"
    fi
    if [ "$AC_HDPARM_POWERMGMT_WITH_LM" != "" ] ; then
    LM_AC_HD_POWERMGMT="$AC_HDPARM_POWERMGMT_WITH_LM"
    fi
    if [ "$AC_HDPARM_POWERMGMT_WITHOUT_LM" != "" ] ; then
    NOLM_AC_HD_POWERMGMT="$AC_HDPARM_POWERMGMT_WITHOUT_LM"
    fi
    if [ "$BATT_HDPARM_POWERMGMT" != "" ] ; then
    BATT_HD_POWERMGMT="$BATT_HDPARM_POWERMGMT"
    fi
    if [ "$DO_WRITECACHE" != "" ] ; then
    CONTROL_HD_WRITECACHE="$DO_WRITECACHE"
    fi
    if [ "$AC_WRITECACHE_WITHOUT_LM" != "" ] ; then
    NOLM_AC_HD_WRITECACHE="$AC_WRITECACHE_WITHOUT_LM"
    fi
    if [ "$BATT_WRITECACHE" != "" ] ; then
    LM_HD_WRITECACHE="$BATT_WRITECACHE"
    fi
    if [ "$DIRTY_RATIO" != "" ]; then
    LM_DIRTY_RATIO="$DIRTY_RATIO"
    fi
    if [ "$DIRTY_BACKGROUND_RATIO" != "" ] ; then
    LM_DIRTY_BACKGROUND_RATIO="$DIRTY_BACKGROUND_RATIO"
    fi
    if [ "$DEF_DIRTY_RATIO" != "" ]; then
    NOLM_DIRTY_RATIO="$DEF_DIRTY_RATIO"
    fi
    if [ "$DEF_DIRTY_BACKGROUND_RATIO" != "" ] ; then
    NOLM_DIRTY_BACKGROUND_RATIO="$DEF_DIRTY_BACKGROUND_RATIO"
    fi
    if [ "$DO_CPU" != "" ] ; then
    CONTROL_CPU_FREQUENCY="$DO_CPU"
    fi
    if [ "$CONTROL_CPU_MAXFREQ" != "" ] ; then
    CONTROL_CPU_FREQUENCY="$CONTROL_CPU_MAXFREQ"
    fi
    if [ "$AC_CPU_MAXFREQ_WITH_LM" != "" ] ; then
    LM_AC_CPU_MAXFREQ="$AC_CPU_MAXFREQ_WITH_LM"
    fi
    if [ "$AC_CPU_MAXFREQ_WITHOUT_LM" != "" ] ; then
    NOLM_AC_CPU_MAXFREQ="$AC_CPU_MAXFREQ_WITHOUT_LM"
    fi
    if [ "$DO_SYSLOG" != "" ] ; then
    CONTROL_SYSLOG_CONF="$DO_SYSLOG"
    fi
    if [ "$SYSLOG_SIGNAL_PROGRAM" != "" ] ;then
    SYSLOG_CONF_SIGNAL_PROGRAM="$SYSLOG_SIGNAL_PROGRAM"
    fi
    if [ "$AC_SYSLOG_WITH_LM" != "" ] ; then
    LM_AC_SYSLOG_CONF="$AC_SYSLOG_WITH_LM"
    fi
    if [ "$AC_SYSLOG_WITHOUT_LM" != "" ] ; then
    NOLM_AC_SYSLOG_CONF="$AC_SYSLOG_WITHOUT_LM"
    fi
    if [ "$BATT_SYSLOG" != "" ] ; then
    BATT_SYSLOG_CONF="$BATT_SYSLOG"
    fi
    if [ "$ENABLE_LAPTOP_MODE_ALWAYS" != "" ] ; then
    ENABLE_LAPTOP_MODE_ON_AC="$ENABLE_LAPTOP_MODE_ALWAYS"
    fi
    if [ "$MINIMUM_BATTERY_MINUTES" != "" -a "$MINIMUM_BATTERY_CHARGE_PERCENT" = "" ] ; then
    # Use a very conservative estimate (1% = 1 battery minute, 100 minutes in a battery)
    # for backward compatibility.
    MINIMUM_BATTERY_CHARGE_PERCENT="$MINIMUM_BATTERY_MINUTES"
    fi
    if [ -z "$MINIMUM_BATTERY_CHARGE_PERCENT" ] ; then
    # Apply the default, now that we've determined that this is the minimum.
    MINIMUM_BATTERY_CHARGE_PERCENT=3
    fi
    if [ "$AUTO_HIBERNATION_BATTERY_MINUTES" != "" -a "$AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT" = "" ] ; then
    # Use a very conservative estimate (1% = 1 battery minute, 100 minutes in a battery)
    # for backward compatibility.
    AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT="$AUTO_HIBERNATION_BATTERY_MINUTES"
    fi
    if [ -z "$AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT" ] ; then
    # Apply the default, now that we've determined that this is the minimum.
    AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT=2
    fi
    # Postprocessing
    if [ "$VERBOSE_OUTPUT" -ne 0 ] ; then
    OUTPUT="/dev/stdout"
    LM_VERBOSE="[ 1 = 1 ]"
    else
    OUTPUT="/dev/null"
    LM_VERBOSE="[ 1 = 0 ]"
    fi
    if [ "$PARTITIONS" = "" ] ; then
    PARTITIONS="auto /dev/mapper/*"
    fi
    # Expand shell wild cards immediately.
    PARTITIONS=$( echo $PARTITIONS )
    TERMINALS=$( echo $TERMINALS )
    # Convert seconds to hdparm -S format
    # Everything over 20 minutes is interpreted as 2 hours.
    seconds_to_hdparm_S() {
    if [ "$1" -eq 0 ] ; then
    # disable.
    echo 0
    elif [ "$1" -gt 0 -a "$1" -lt 5 ] ; then
    # 5 seconds minimum
    echo 1
    elif [ "$1" -le $((240*5)) ] ; then
    # Values between 1 and 240 signify increments of 5 seconds
    echo $(($1 / 5))
    elif [ "$1" -lt $((30*60)) ] ; then
    # Values between 20 and 30 minutes are rounded up to 30 minutes.
    echo 241
    elif [ "$1" -lt $((12*30*60)) ] ; then
    # Values between 30 minutes and 6 hours (exclusive) yield values between
    # 241 and 251, in 30-minute increments.
    echo $(( 240 + ($1 / (30*60)) ))
    else
    # Larger values effectively indicate no timeout at all.
    echo 0
    fi
    # Convert configured idle timeouts to hdparm -S format.
    if [ "$LM_AC_HD_IDLE_TIMEOUT_SECONDS" != "" ] ; then
    LM_AC_HD_IDLE_TIMEOUT=$(seconds_to_hdparm_S $LM_AC_HD_IDLE_TIMEOUT_SECONDS)
    fi
    if [ "$LM_BATT_HD_IDLE_TIMEOUT_SECONDS" != "" ] ; then
    LM_BATT_HD_IDLE_TIMEOUT=$(seconds_to_hdparm_S $LM_BATT_HD_IDLE_TIMEOUT_SECONDS)
    fi
    if [ "$NOLM_HD_IDLE_TIMEOUT_SECONDS" != "" ] ; then
    NOLM_HD_IDLE_TIMEOUT=$(seconds_to_hdparm_S $NOLM_HD_IDLE_TIMEOUT_SECONDS)
    fi
    # The main workhorse.
    lmt_main_function ()
    if [ "$1" = "status" ] ; then
    # Display a status report.
    log "STATUS" "Mounts:"
    mount | sed "s/^/ /"
    log "STATUS" " "
    log "STATUS" "Drive power status:"
    for disk in $HD; do
    if [ -r $disk ]; then
    hdparm -C $disk 2>/dev/null | sed "s/^/ /"
    else
    log "STATUS" " Cannot read $disk, permission denied - $0 needs to be run as root"
    fi
    done
    log "STATUS" " "
    log "STATUS" "(NOTE: drive settings affected by Laptop Mode cannot be retrieved.)"
    log "STATUS" " "
    log "STATUS" "Readahead states:"
    cat /etc/mtab | while read DEV MP FST OPTS DUMP PASS ; do
    # skip funny stuff
    case "$FST" in
    rootfs|unionfs|tmpfs|squashfs|sysfs|usbfs|proc|devpts) continue
    esac
    if [ -b $DEV ] ; then
    if [ -r $DEV ] ; then
    log "STATUS" " $DEV: $((`blockdev --getra $DEV` / 2)) kB"
    else
    log "STATUS" " Cannot read $DEV, permission denied - $0 needs to be run as root"
    fi
    fi
    done
    log "STATUS" " "
    if [ -e /var/run/laptop-mode-tools/enabled ] ; then
    log "STATUS" "Laptop Mode Tools is allowed to run: /var/run/laptop-mode-tools/enabled exists."
    else
    log "STATUS" "Laptop Mode Tools is NOT allowed to run: /var/run/laptop-mode-tools/enabled does not exist."
    fi
    log "STATUS" " "
    STATFILES="/proc/sys/vm/laptop_mode /proc/apm /proc/pmu/info /proc/sys/vm/bdflush /proc/sys/vm/dirty_ratio /proc/sys/fs/xfs/age_buffer /proc/sys/fs/xfs/sync_interval /proc/sys/fs/xfs/lm_age_buffer /proc/sys/fs/xfs/lm_sync_interval /proc/sys/vm/pagebuf/lm_flush_age /proc/sys/fs/xfs/xfsbufd_centisecs /proc/sys/fs/xfs/xfssyncd_centisecs /proc/sys/vm/dirty_background_ratio /proc/sys/vm/dirty_expire_centisecs /proc/sys/fs/xfs/age_buffer/centisecs /proc/sys/vm/dirty_writeback_centisecs /sys/devices/system/cpu/*/cpufreq/cpuinfo_*_freq /sys/devices/system/cpu/*/cpufreq/scaling_governor /proc/acpi/button/lid/*/state /proc/acpi/ac_adapter/*/state /proc/acpi/battery/*/state /sys/class/power_supply/*/online /sys/class/power_supply/*/state"
    for THISFILE in $STATFILES ; do
    if [ -e "$THISFILE" ] ; then
    log "STATUS" "$THISFILE:"
    if [ -r "$THISFILE" ] ; then
    cat "$THISFILE" | sed "s/^/ /"
    else
    log "STATUS" " Not accessible, permission denied - $0 needs to be run as root."
    fi
    log "STATUS" " "
    fi
    done
    elif [ "$1" != "readconfig" -a "$1" != "defaults" ] ; then
    KLEVEL="$(uname -r |
    IFS='.-' read a b c
    echo $a.$b
    KMINOR="$(uname -r |
    IFS='.-' read a b c d
    # Strip any stuff from the end -- only the initial digits are part of the KMINOR.
    echo $c | sed -e 's/\([[:digit:]]*\).*/\1/'
    # Stop exporting everything -- what we do from here is private.
    set +a
    if [ "$1" = "--version" ] ; then
    log "MSG" "Laptop Mode Tools $LMTVERSION"
    exit 0
    fi
    if [ ! -e /proc/sys/vm/laptop_mode ] ; then
    log "ERR" "Kernel does not have support for laptop mode. Please apply the laptop mode"
    log "ERR" "patch or install a newer kernel."
    exit 1
    fi
    if [ ! -w /proc/sys/vm/laptop_mode ] ; then
    log "ERR" "You do not have enough privileges to enable laptop_mode."
    exit 1
    fi
    INIT=0 # Display info in init script format?
    FORCE=0 # Force reapplying the current state?
    while [ "$1" != "" ] ; do
    case "$1" in
    init) INIT=1 ;;
    force) FORCE=1 ;;
    # Old options. We always do "auto" for any option now, but
    # we still have to accept the options.
    start) ;;
    stop) ;;
    auto) ;;
    modules=*)
    MODULES=$1
    MODULES=${MODULES#"modules="}
    devices=*)
    DEVICES=$1
    DEVICES=${DEVICES#"devices="}
    *) log "ERR" "Unrecognized option $1."
    exit 1 ;;
    esac
    shift
    done
    mkdir -p /var/run/laptop-mode-tools
    # Used to display laptop mode state later on. This is the enabled/disabled
    # state for laptop mode processing, it tells us nothing about whether laptop
    # mode is actually _active_.
    STATE=enabled
    if [ "$ENABLE_LAPTOP_MODE_ON_BATTERY" -eq 0 -a "$ENABLE_LAPTOP_MODE_ON_AC" -eq 0 -a "$ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED" -eq 0 ] ; then
    STATE=disabled
    fi
    # Determine the power state.
    # First try /sys/class/power_supply/*
    FOUND_SYS_CLASS_POWER_SUPPLY_AC=0
    ON_AC=0
    for POWER_SUPPLY in /sys/class/power_supply/* ; do
    if [ -f $POWER_SUPPLY/type ] ; then
    if [ "$(cat $POWER_SUPPLY/type)" = "Mains" ] ;then
    log "VERBOSE" "Determining power state from $POWER_SUPPLY/online."
    FOUND_SYS_CLASS_POWER_SUPPLY_AC=1
    if [ "$(cat $POWER_SUPPLY/online)" = 1 ] ; then
    ON_AC=1
    fi
    fi
    fi
    done
    if [ $FOUND_SYS_CLASS_POWER_SUPPLY_AC = 1 ] ; then
    # Already found it!
    log "VERBOSE" "Not trying other options, already found a power supply."
    elif [ -d /proc/acpi/ac_adapter ] ; then
    log "VERBOSE" "Determining power state from /proc/acpi/ac_adapter."
    ADAPTERS_FOUND=0
    ON_AC=0
    for ADAPTER in /proc/acpi/ac_adapter/* ; do
    if [ -f $ADAPTER/state ] ; then
    ADAPTERS_FOUND=1
    STATUS=`awk '/^state: / { print $2 }' $ADAPTER/state`
    if [ "$STATUS" = "on-line" ] ; then
    ON_AC=1
    fi
    fi
    done
    if [ "$ADAPTERS_FOUND" -eq 0 ] ; then
    ON_AC=1
    fi
    elif [ -f /proc/pmu/info ] ; then
    log "VERBOSE" "Determining power state from /proc/pmu/info."
    if ( grep -q "^AC Power.*0$" /proc/pmu/info ) ; then
    log "VERBOSE" "/proc/pmu/info indicates absence of AC power."
    ON_AC=0
    else
    # It is possible that there is no AC Power = 1 in the file,
    # but we always assume AC power when we're not sure.
    ON_AC=1
    log "VERBOSE" "/proc/pmu/info indicates presence of AC power."
    fi
    elif [ -f /proc/apm ] ; then
    log "VERBOSE" "Determining power state from /proc/apm."
    read D1 D2 D3 APM_AC_STATE D0 </proc/apm
    if [ "$APM_AC_STATE" = "0x00" ] ; then
    ON_AC=0
    else
    ON_AC=1
    fi
    else
    log "VERBOSE" "No /sys/class/power_supply, ACPI, APM or PMU power management information found -- assuming AC power is present."
    ON_AC=1
    fi
    # Determine whether to activate or deactivate laptop mode.
    ACTIVATE=0
    if [ "$ON_AC" -eq 1 ] ; then
    if [ "$ENABLE_LAPTOP_MODE_ON_AC" -ne 0 ] ; then
    log "VERBOSE" "On AC power: Activating, because ENABLE_LAPTOP_MODE_ON_AC is set."
    ACTIVATE=1
    else
    log "VERBOSE" "On AC power: Deactivating, because ENABLE_LAPTOP_MODE_ON_AC is not set."
    ACTIVATE=0
    fi
    else
    if [ "$ENABLE_LAPTOP_MODE_ON_BATTERY" -ne 0 ] ; then
    log "VERBOSE" "On battery power: Activating, because ENABLE_LAPTOP_MODE_ON_BATTERY is set."
    ACTIVATE=1
    else
    log "VERBOSE" "On battery power: Deactivating, because ENABLE_LAPTOP_MODE_ON_BATTERY is not set."
    ACTIVATE=0
    fi
    fi
    if [ "$ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED" -ne 0 -a "$ACTIVATE" -eq 0 ] ; then
    if [ -x "`which hal-find-by-property`" ] ; then
    HAL_LID_BUTTON=$(hal-find-by-property --key "button.type" --string "lid")
    fi
    if [ "$HAL_LID_BUTTON" != "" ] ; then
    HAL_LID_BUTTON_STATE=$(hal-get-property --udi $(hal-find-by-property --key "button.type" --string "lid") --key "button.state.value")
    if [ "$HAL_LID_BUTTON_STATE" = "true" ] ; then
    log "VERBOSE" "Setting action to \"start\" because the lid is closed (says HAL)."
    ACTIVATE=1
    fi
    elif [ -f /proc/acpi/button/lid/*/state ] ; then
    if ( grep -q "closed" /proc/acpi/button/lid/*/state ) ; then
    log "VERBOSE" 'Setting action to "start" because the lid is closed (says /proc/acpi/button/lid/*/state).'
    ACTIVATE=1
    fi
    else
    log "MSG" "Warning: ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED is set, but there is no file"
    log "MSG" "/proc/acpi/button/lid/.../state, and hal information is not available either!"
    fi
    fi
    # If the init script has not been run or has been run with the "stop"
    # argument, then we should never start laptop mode.
    if [ ! -f /var/run/laptop-mode-tools/enabled ] ; then
    log "VERBOSE" "Laptop mode disabled because /var/run/laptop-mode-tools/enabled is missing."
    STATE=disabled
    fi
    if [ "$ACTIVATE" -eq 1 -a -f /etc/default/laptop-mode ] ; then
    . /etc/default/laptop-mode
    if ! ( echo "$ENABLE_LAPTOP_MODE" |grep y ) ; then
    log "VERBOSE" "Not starting laptop mode because it is disabled in /etc/default/laptop-mode."
    STATE=disabled
    fi
    fi
    if [ "$STATE" = "disabled" ] ; then
    ACTIVATE=0
    fi
    # Check whether we are allowed to activate the data-loss-sensitive stuff.
    # If the battery charge is too low, we want to disable this, but not the
    # other power-saving stuff.
    if [ "$ACTIVATE" -eq 0 ] ; then
    ACTIVATE_WITH_POSSIBLE_DATA_LOSS=0
    elif [ "$ON_AC" = 1 ] ; then
    log "VERBOSE" "On AC, not checking minimum battery charge."
    ACTIVATE_WITH_POSSIBLE_DATA_LOSS=1
    else
    ACTIVATE_WITH_POSSIBLE_DATA_LOSS=1
    ENOUGH_CHARGE=0
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=0
    # Weird way of checking that /sys/class/power_supply is not empty -- but it works.
    if [ "$(echo /sys/class/power_supply/*)" != '/sys/class/power_supply/*' ] ; then
    log "VERBOSE" "Not on AC and we have battery information in /sys/class/power_supply/BAT* -- checking minimum battery charge."
    for BATT in /sys/class/power_supply/* ; do
    BATT_TYPE=$(cat $BATT/type)
    log "VERBOSE" "$BATT is of type $BATT_TYPE."
    if [ "$BATT_TYPE" != "Battery" ] ; then
    log "VERBOSE" "Not of type \"Battery\", skipping."
    else
    PREV_ENOUGH_CHARGE=$ENOUGH_CHARGE
    PREV_ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=$ENOUGH_CHARGE_TO_PREVENT_HIBERNATION
    log "VERBOSE" "Checking levels for $BATT."
    PRESENT=$(cat $BATT/present)
    log "VERBOSE" "Present: $PRESENT."
    # Only do if the battery is present
    if [ "$PRESENT" -eq 1 ] ; then
    FOUND_AN_ENABLED_CHECK=0
    FOUND_AN_ENABLED_HIBERNATION_CHECK=0
    # Get the remaining capacity.
    IN_UAH=0
    IN_UWH=0
    if [ -f $BATT/charge_now ] ; then
    REMAINING=$(cat $BATT/charge_now)
    IN_UAH=1 # charge_* is in microAmpere-hours
    elif [ -f $BATT/energy_now ] ; then
    REMAINING=$(cat $BATT/energy_now)
    IN_UWH=1 # energy_* is in microWatt-hours
    else
    REMAINING=0
    fi
    if [ -z "$REMAINING" -o "$REMAINING" -eq 0 ] ; then
    log "VERBOSE" "Battery does not report remaining charge. Perhaps it is not present?"
    REMAINING=0
    fi
    log "VERBOSE" "Remaining charge: $REMAINING"
    if [ -f $BATT/charge_full_design ] ; then
    CAPACITY=$(cat $BATT/charge_full_design)
    elif [ -f $BATT/energy_full_design ] ; then
    CAPACITY=$(cat $BATT/energy_full_design)
    else
    CAPACITY=0
    fi
    if [ -z "$CAPACITY" -o "$CAPACITY" -eq 0 ] ; then
    log "VERBOSE" "Battery does not report design full charge, using non-design full charge."
    if [ -f $BATT/charge_full ] ; then
    CAPACITY=$(cat $BATT/charge_full)
    elif [ -f $BATT/energy_full_design ] ; then
    CAPACITY=$(cat $BATT/energy_full)
    else
    CAPACITY=0
    fi
    if [ -z "$CAPACITY" -o "$CAPACITY" -eq 0 ] ; then
    log "VERBOSE" "Battery does not report non-design full charge."
    CAPACITY=0
    fi
    fi
    log "VERBOSE" "Full capacity: $CAPACITY"
    # Check the charge percentage
    if [ "$MINIMUM_BATTERY_CHARGE_PERCENT" -ne 0 ] ; then
    FOUND_AN_ENABLED_CHECK=1
    if [ "$CAPACITY" -eq 0 ] ; then
    log "MSG" "WARNING: Battery does not report a capacity. Minimum battery"
    log "MSG" "charge checking does not work without a design capacity."
    ENOUGH_CHARGE=1
    elif [ "$(($REMAINING * 100 / $CAPACITY))" -ge "$MINIMUM_BATTERY_CHARGE_PERCENT" ] ; then
    ENOUGH_CHARGE=1
    fi
    fi
    if [ "$AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT" -ne 0 ] ; then
    FOUND_AN_ENABLED_HIBERNATION_CHECK=1
    if [ "$CAPACITY" -eq 0 ] ; then
    log "MSG" "WARNING: Battery does not report a design capacity. Auto hibernation"
    log "MSG" "does not work without a design capacity."
    ENOUGH_CHARGE=1
    elif [ "$(($REMAINING * 100 / $CAPACITY))" -ge "$AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT" ] ; then
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=1
    fi
    fi
    # $BATT/alarm is the design_capacity_warning of a battery.
    ALARM_LEVEL=$(cat $BATT/alarm)
    if [ "$ALARM_LEVEL" -ne 0 ] ; then
    if [ "$REMAINING" -le "$ALARM_LEVEL" ] ; then
    # Restore the state we had before checking this battery, so that
    # this battery does not count as having enough charge.
    ENOUGH_CHARGE=$PREV_ENOUGH_CHARGE
    elif [ "$FOUND_AN_ENABLED_CHECK" -eq 0 ] ; then
    # This is the only check that is enabled. In that case a non-critical
    # battery level counts as "enough". (If we would count non-critical
    # battery levels as enough *always*, then the other settings would
    # have no effect; this is only a final fallback.)
    ENOUGH_CHARGE=1
    fi
    fi
    if [ "$AUTO_HIBERNATION_ON_CRITICAL_BATTERY_LEVEL" -ne 0 ] ; then
    if [ "$REMAINING" -le "$ALARM_LEVEL" ] ; then
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=$PREV_ENOUGH_CHARGE_TO_PREVENT_HIBERNATION
    elif [ "$FOUND_AN_ENABLED_HIBERNATION_CHECK" -eq 0 ] ; then
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=1
    fi
    fi
    # Fallback: hard values
    if [ "$IN_UAH" -ne 0 ] ; then
    if [ "$MINIMUM_BATTERY_CHARGE_MAH" -ne 0 ] ; then
    FOUND_AN_ENABLED_CHECK=1
    if [ "$REMAINING" -ge $((1000*"$MINIMUM_BATTERY_CHARGE_MAH")) ] ; then
    ENOUGH_CHARGE=1
    fi
    fi
    if [ "$AUTO_HIBERNATION_BATTERY_CHARGE_MAH" -ne 0 ] ; then
    FOUND_AN_ENABLED_HIBERNATION_CHECK=1
    if [ "$REMAINING" -ge $((1000*"$AUTO_HIBERNATION_BATTERY_CHARGE_MAH")) ] ; then
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=1
    fi
    fi
    elif [ "$IN_UWH" -ne 0 ] ; then
    if [ "$MINIMUM_BATTERY_CHARGE_MWH" -ne 0 ] ; then
    FOUND_AN_ENABLED_CHECK=1
    if [ "$REMAINING" -ge $((1000*"$MINIMUM_BATTERY_CHARGE_MWH")) ] ; then
    ENOUGH_CHARGE=1
    fi
    fi
    if [ "$AUTO_HIBERNATION_BATTERY_CHARGE_MWH" -ne 0 ] ; then
    FOUND_AN_ENABLED_HIBERNATION_CHECK=1
    if [ "$REMAINING" -ge $((1000*"$AUTO_HIBERNATION_BATTERY_CHARGE_MWH")) ] ; then
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=1
    fi
    fi
    else
    log "ERR" "Failed to determine battery charge. Battery charge units are not in"
    log "ERR" "mWh, uWh, mAh or uAh."
    fi
    else
    log "VERBOSE" "Battery is not present."
    fi
    fi
    done
    elif [ "$(echo /proc/acpi/battery/*)" != '/proc/acpi/battery/*' ] ; then
    log "VERBOSE" "Not on AC and we have batteries in /proc/acpi/battery -- checking minimum battery charge."
    for BATT in /proc/acpi/battery/* ; do
    PREV_ENOUGH_CHARGE=$ENOUGH_CHARGE
    PREV_ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=$ENOUGH_CHARGE_TO_PREVENT_HIBERNATION
    BATT_STATE=$BATT/state
    BATT_INFO=$BATT/info
    log "VERBOSE" "Checking info and state for $BATT."
    # Only do if the battery is present
    if ( grep -q 'present:.*yes' $BATT_INFO ) ; then
    FOUND_AN_ENABLED_CHECK=0
    FOUND_AN_ENABLED_HIBERNATION_CHECK=0
    # Get the remaining capacity.
    REMAINING=`grep "remaining capacity:" $BATT_STATE | sed "s/.* \([0-9][0-9]* \).*/\1/" `
    if [ -z "$REMAINING" ] ; then
    log "VERBOSE" "Battery does not report remaining charte. Perhaps it is not present?"
    REMAINING=0
    fi
    log "VERBOSE" "Remaining charge: $REMAINING"
    CAPACITY=`grep "design capacity:" $BATT_INFO | sed "s/.* \([0-9][0-9]* \).*/\1/" `
    if [ -z "$CAPACITY" ] ; then
    log "VERBOSE" "Battery does not report capacity. Perhaps it is not present?"
    CAPACITY=0
    fi
    log "VERBOSE" "Design capacity: $CAPACITY"
    # Check the charge percentage
    if [ "$MINIMUM_BATTERY_CHARGE_PERCENT" -ne 0 ] ; then
    FOUND_AN_ENABLED_CHECK=1
    if [ "$CAPACITY" -eq 0 ] ; then
    log "MSG" "WARNING: Battery does not report a design capacity. Minimum battery"
    log "MSG" "charge checking does not work without a design capacity."
    ENOUGH_CHARGE=1
    elif [ "$(($REMAINING * 100 / $CAPACITY))" -ge "$MINIMUM_BATTERY_CHARGE_PERCENT" ] ; then
    ENOUGH_CHARGE=1
    fi
    fi
    if [ "$AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT" -ne 0 ] ; then
    FOUND_AN_ENABLED_HIBERNATION_CHECK=1
    if [ "$CAPACITY" -eq 0 ] ; then
    log "MSG" "WARNING: Battery does not report a design capacity. Auto hibernation"
    log "MSG" "does not work without a design capacity."
    ENOUGH_CHARGE=1
    elif [ "$(($REMAINING * 100 / $CAPACITY))" -ge "$AUTO_HIBERNATION_BATTERY_CHARGE_PERCENT" ] ; then
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=1
    fi
    fi
    # Fallback: hard values.
    # Determine the reporting unit.
    IN_MAH=0
    IN_MWH=0
    if ( grep -q mWh $BATT_INFO ) ; then
    IN_MWH=1
    elif ( grep -q mAh $BATT_INFO ) ; then
    IN_MAH=1
    fi
    if [ "$IN_MAH" -ne 0 ] ; then
    if [ "$MINIMUM_BATTERY_CHARGE_MAH" -ne 0 ] ; then
    FOUND_AN_ENABLED_CHECK=1
    if [ "$REMAINING" -ge "$MINIMUM_BATTERY_CHARGE_MAH" ] ; then
    ENOUGH_CHARGE=1
    fi
    fi
    if [ "$AUTO_HIBERNATION_BATTERY_CHARGE_MAH" -ne 0 ] ; then
    FOUND_AN_ENABLED_HIBERNATION_CHECK=1
    if [ "$REMAINING" -ge "$AUTO_HIBERNATION_BATTERY_CHARGE_MAH" ] ; then
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=1
    fi
    fi
    elif [ "$IN_MWH" -ne 0 ] ; then
    if [ "$MINIMUM_BATTERY_CHARGE_MWH" -ne 0 ] ; then
    FOUND_AN_ENABLED_CHECK=1
    if [ "$REMAINING" -ge "$MINIMUM_BATTERY_CHARGE_MWH" ] ; then
    ENOUGH_CHARGE=1
    fi
    fi
    if [ "$AUTO_HIBERNATION_BATTERY_CHARGE_MWH" -ne 0 ] ; then
    FOUND_AN_ENABLED_HIBERNATION_CHECK=1
    if [ "$REMAINING" -ge "$AUTO_HIBERNATION_BATTERY_CHARGE_MWH" ] ; then
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=1
    fi
    fi
    else
    log "ERR" "Failed to determine battery charge. Battery charge units are not in"
    log "ERR" "mWh or mAh."
    fi
    CAP_STATE=`sed -r 's/^capacity state:\s*(.*)\s*$/\1/;t;d' "$BATT_STATE"`
    if [ "$DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL" -ne 0 ] ; then
    if [ "$CAP_STATE" = "critical" ] ; then
    # Restore the state we had before checking this battery, so that
    # this battery does not count as having enough charge.
    ENOUGH_CHARGE=$PREV_ENOUGH_CHARGE
    elif [ "$FOUND_AN_ENABLED_CHECK" -eq 0 ] ; then
    # This is the only check that is enabled. In that case a non-critical
    # battery level counts as "enough". (If we would count non-critical
    # battery levels as enough *always*, then the other settings would
    # have no effect; this is only a final fallback.)
    ENOUGH_CHARGE=1
    fi
    fi
    if [ "$AUTO_HIBERNATION_ON_CRITICAL_BATTERY_LEVEL" -ne 0 ] ; then
    if [ "$CAP_STATE" = "critical" ] ; then
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=$PREV_ENOUGH_CHARGE_TO_PREVENT_HIBERNATION
    elif [ "$FOUND_AN_ENABLED_HIBERNATION_CHECK" -eq 0 ] ; then
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=1
    fi
    fi
    else
    log "VERBOSE" "Battery is not present."
    fi
    done
    else
    ENOUGH_CHARGE=1
    ENOUGH_CHARGE_TO_PREVENT_HIBERNATION=1
    log "VERBOSE" "Not on AC and could not check battery state -- data loss sensitive features stay enabled and auto-hibernation will not work."
    fi
    if [ "$ENABLE_AUTO_HIBERNATION" -ne 0 -a "$ENOUGH_CHARGE_TO_PREVENT_HIBERNATION" -eq 0 ] ; then
    log "VERBOSE" "None of the batteries have a charge above the auto-hibernation level."
    log "VERBOSE" "Starting hibernation."
    if [ -x $HIBERNATE_COMMAND ]; then
    $HIBERNATE_COMMAND
    elif [ -f /sys/power/state ]; then
    grep -q disk /sys/power/state && echo disk > /sys/power/state
    fi
    # Don't continue -- if things are configured correctly, then we
    # will be called on resume.
    exit 0
    fi
    if [ "$ENOUGH_CHARGE" -eq 0 ] ; then
    log "VERBOSE" "None of the batteries have a charge above the minimum level."
    log "VERBOSE" "Deactivating data loss sensitive features."
    ACTIVATE_WITH_POSSIBLE_DATA_LOSS=0
    fi
    fi
    if [ "$INIT" -eq 0 ] ; then
    log "MSG" "Laptop mode "
    fi
    # WAS_ACTIVE is used later on. If there is no /var/run/laptop-mode-tools/state, then
    # we know that laptop mode wasn't active before.
    WAS_ACTIVE=0
    log "VERBOSE" "Checking if desired state is different from current state."
    if [ -f /var/run/laptop-mode-tools/state ] ; then
    read WAS_ACTIVE WAS_ON_AC WAS_ACTIVATE_WITH_POSSIBLE_DATA_LOSS WAS_STATE < /var/run/laptop-mode-tools/state
    if [ "$WAS_STATE" != "" ] ; then
    if [ "$WAS_ACTIVE" -eq "$ACTIVATE" -a "$WAS_ON_AC" -eq "$ON_AC" -a "$WAS_ACTIVATE_WITH_POSSIBLE_DATA_LOSS" -eq "$ACTIVATE_WITH_POSSIBLE_DATA_LOSS" -a "$WAS_STATE" = "$STATE" -a "$FORCE" -eq 0 ] ; then
    log "MSG" "$STATE, "
    if [ "$WAS_ACTIVE" -eq 1 ] ; then
    log "MSG" "active [unchanged]"
    if [ "$ACTIVATE_WITH_POSSIBLE_DATA_LOSS" -eq 0 ] ; then
    log "MSG" " (Data-loss sensitive features disabled.)"
    fi
    else
    log "MSG" "not active [unchanged]"
    fi
    exit 0
    fi
    fi
    else
    log "VERBOSE" "/var/run/laptop-mode-tools/state does not exist, no previous state."
    fi
    echo "$ACTIVATE $ON_AC $ACTIVATE_WITH_POSSIBLE_DATA_LOSS $STATE" > /var/run/laptop-mode-tools/state
    if [ "$ACTIVATE" -eq 1 ] ; then
    log "MSG" "$STATE, active"
    if [ "$ACTIVATE_WITH_POSSIBLE_DATA_LOSS" -eq 0 ] ; then
    log "MSG" " (Data-loss sensitive features disabled.)"
    fi
    else
    log "MSG" "$STATE, not active"
    fi
    # Finally, call laptop-mode-tools modules. The modules can use the settings
    # from the config files, but they may NOT assume the settings actually exist,
    # as no defaults have been given for them.
    # Note that the /usr/local/lib path is deprecated.
    export FORCE STATE ON_AC ACTIVATE ACTIVATE_WITH_POSSIBLE_DATA_LOSS KLEVEL KMINOR WAS_ACTIVE LM_VERBOSE DEVICES
    for SCRIPT in /usr/share/laptop-mode-tools/modules/* /usr/local/lib/laptop-mode-tools/modules/* /usr/local/share/laptop-mode-tools/modules/* /etc/laptop-mode/modules/* ; do
    if [ -z "$MODULES" ] ; then
    # If a module list has not been provided, execute all modules
    EXECUTE_SCRIPT=1
    else
    # If a module list has been provided, execute only the listed
    # modules.
    EXECUTE_SCRIPT=0
    for MODULE in $MODULES; do
    # Attempt to remove the module name from the end of the
    # full script path. If the module name matches the
    # script, the name will be removed from the end of the
    # full file path, leaving the path to the script. If
    # there was not a match made, the module name would not
    # be removed from the path, and $PATH_TO_SCRIPT would
    # be the same as $SCRIPT.
    PATH_TO_SCRIPT=${SCRIPT%%$MODULE}
    # Execute the script if a match was found (module name
    # was removed from the script path, making it shorter.
    if [ $PATH_TO_SCRIPT != $SCRIPT ] ; then
    EXECUTE_SCRIPT=1
    fi
    done
    fi
    if [ -x "$SCRIPT" -a $EXECUTE_SCRIPT -eq 1 ] ; then
    log "VERBOSE" "Invoking module $SCRIPT."
    SCRIPT_DEBUG=$SCRIPT; # We do this because in start-stop-programs module a $SCRIPT variable is used. That
    # changes the whole meaning when passed to disableDebug ()
    enableDebug $SCRIPT_DEBUG;
    . $SCRIPT
    disableDebug $SCRIPT_DEBUG;
    else
    log "VERBOSE" "Module $SCRIPT is not executable or is to be skipped."
    fi
    done
    exit 0
    # This fi closes the if for "readconfig". If I would have indented this one
    # I would have indented the whole file. :)
    fi
    lmt_load_config
    lock_retry ()
    ( $FLOCK -n -x -w 1 8 || exit 0;
    i=10;
    while [ $i -ge 1 ]
    do
    log "ERR" "Couldn't acquire lock. Retrying.... PID is $$\n"
    $FLOCK -x -w 1 9 && lmt_main_function "$@" && break;
    i=$(( $i - 1 ))
    done
    ) 8>$LMT_REQ_LOCK
    # Check and acquire locks and then exec.
    ( $FLOCK -n -x -w 1 8; ) 8>$LMT_REQ_LOCK
    ($FLOCK -n -x -w 1 9 && lmt_main_function "$@";) || lock_retry "$@"
    ) 9<>$LMT_INVOC_LOCK
    # We do a special run of battery polling daemon here so that it does not get
    # plagued by the lock. We need the polling daemon to be independent of any locks
    if [ x$ENABLE_BATTERY_LEVEL_POLLING = x1 ] && [ x$BLACKLIST_IN_FLOCK = x1 ]; then
    log "VERBOSE" "Battery level polling is enabled."
    if [ x$ON_AC = x1 ] ; then
    log "VERBOSE" "On AC, stopping the polling daemon."
    # In AC mode we disable the polling daemon.
    killall -q lm-polling-daemon
    else
    if ! pidof -x lm-polling-daemon ; then
    log "VERBOSE" "On battery and there was no polling daemon yet, starting the polling daemon."
    # If there is no polling daemon, we start one.
    /usr/share/laptop-mode-tools/module-helpers/lm-polling-daemon < /dev/null > /dev/null 2> /dev/null &
    fi
    fi
    else
    log "VERBOSE" "Battery level polling is disabled."
    fi
    exit 0;
    and here is the lines which archwiki mentions
    case "$KLEVEL" in
    "2.4" ) ;;
    "2.6" ) ;;
    log "ERR" "Unhandled kernel version: $KLEVEL ('uname -r' = '$(uname -r)')" >&2
    exit 1
    esac

    I had the problem but edited the line in /usr/sbin/laptop_mode and it worked. But thoes lines are not there anymore. I guess they changed it at the recent update of laptop-mode-tools.
    Regarding your heat problem; is there any other thing you use to cut down power usage (from AUR  maybe)? I use acpi_call from AUR had to edit lines there aswell, but it should be updated by now.

  • [SOLVED]No Sound with ALSA - Intel Corporation 82801G HD Audio

    Hey all,
    I've succesfully installed Arch Linux. My past two attempts have met with failure, all because of my own failure to read and follow directions correctly. This time everything is installed correctly. I am running Kdemod3 on my laptop with Arch and everything works great. I LOVE Pacman and the simplicity of Arch's configuration files. It's super fast and all together simple. My only remaining problem is this:
    My sound with ALSA is not functioning. I followed the installation instructions at the arch wiki and after unmuting all of my channels I still would not get any sound. My sound module is snd_hda_intel and it is detected, loaded and the whole nine yards (as far as I can tell). My user is a member of the 'audio' user group also. I looked at the troubleshooting tips on the bottom of the Wiki but decided not to try them as they do not seem to pertain to my card (snd_hda_intel) but I will try them if anyone would like me to.
    If anyone has any ideas, they'd be greatly appreciated!:D Anything I can provide that you need I will be more than willing to provide.
    Thanks for such a great distribution,
    Dan
    Last edited by JazzDan (2008-06-29 05:06:35)

    Problem resolved. I ran alsaconf, selected my soundcard, and everything was working from there out. Thanks MisfitI38 on the IRC!!!

  • Oracle 10g on SuSE 9 with kernel 2.6.4

    Hi,
    i have installed Oracle 10g on SuSE 9 Professional with kernel 2.4.21-192 and it works fine.
    For testing purposes i have installed a 2.6.4 Kernel and get the following error on database startup:
    SQL> Connected to an idle instance
    SQL> ORA-27125: unable to create shared memory segment
    Linux Error: 1: Operation not permitted
    SQL> Disconnected
    Do you have any hints or is the kernel 2.6 not supported.
    Thanks Klaus

    /* using strace I have narrowed this down to the shmget call for allocating SGA memory. Specifically 2.6 kernel generates a WAIT in this call and Oracle specify IPC_NOWAIT flag, hence the failure condition.*/
    #include <sys/types.h>
    #include <sys/shm.h>
    #include <sys/types.h>
    #include <sys/mman.h>
    #include <errno.h>
    extern int errno;
    #define SHM_HUGETLB 04000
    #define SGA_SIZE 192937984
    #define dprintf(x) printf(x)
    #define ADDR 3285588844UL
    main()
    int shmid;
    int i, j, k;
    volatile char *shmaddr;
    if ((shmid = shmget(ADDR, SGA_SIZE, IPC_CREAT|IPC_NOWAIT|IPC_EXCL|0660) )
    < 0) {
    perror("IPC_NOWAIT Failure:\nTry without NOWAIT condition");
    if ((shmid = shmget(ADDR, SGA_SIZE, IPC_CREAT|IPC_EXCL|0660) )
    < 0) {
    perror("Failure:");
    exit(1);
    printf("shmid: 0x%x\n", shmid);
    shmaddr = shmat(shmid, (void *)ADDR, SHM_RND) ;
    if (errno != 0) {
    perror("Shared Memory Attach Failure:");
    exit(2);
    printf("shmaddr: %p\n", shmaddr);
    dprintf("Starting the writes:\n");
    for (i=0;i<SGA_SIZE;i++) {
    shmaddr[i] = (char) (i);
    if (!(i%(1024*1024))) dprintf(".");
    dprintf("\n");
    dprintf("Starting the Check...");
    for (i=0; i<SGA_SIZE;i++)
    if (shmaddr[i] != (char)i)
    printf("\nIndex %d mismatched.");
    dprintf("Done.\n");
    if (shmdt((const void *)shmaddr) != 0) {
    perror("Detached Failure:");
    exit (3);

  • On photoshop element 12 when I open a .MTS file I have the sound with a black screen if I open a .mov it work fine I have uninstall and reinstall I still have the same problem can you help?

    On photoshop element 12 when I open a .MTS file I have the sound with a black screen if I open a .mov it work fine I have uninstall and reinstall I still have the same problem can you help?

    I have find the codec installed on my PC do you see an undesirable one I have highlighted the one that seems strange should I uninstall how can I do this safely
    Daniel
    Codecs audio
    Type
    Nom
    Format
    Binaire
    Version
    ACM
    Codec Microsoft IMA ADPCM
    0011
    ACM
    CODEC A-Law et u-Law Microsoft CCITT G.711
    0007
    ACM
    Codec audio Microsoft GSM 6.10
    0031
    ACM
    Codec Microsoft ADPCM
    0002
    ACM
    Fraunhofer IIS MPEG Layer-3 Codec (decode only)
    0055
    ACM
    Convertisseur PCM Microsoft
    0001
    DMO
    WMAudio Decoder DMO
    0160, 0161, 0162, 0163
    WMADMOD.DLL
    6.1.7601.17514
    DMO
    WMAPro over S/PDIF DMO
    0162
    WMADMOD.DLL
    6.1.7601.17514
    DMO
    WMSpeech Decoder DMO
    000A, 000B
    WMSPDMOD.DLL
    6.1.7601.17514
    DMO
    MP3 Decoder DMO
    0055
    mp3dmod.dll
    6.1.7600.16385
    Codecs vidéo
    Type
    Nom
    Format
    Binaire
    Version
    ICM
    Microsoft RLE
    MRLE
    msrle32.dll
    6.1.7601.17514
    ICM
    Microsoft Vidéo 1
    MSVC
    msvidc32.dll
    6.1.7601.17514
    ICM
    Microsoft YUV
    UYVY
    msyuv.dll
    6.1.7601.17514
    ICM
    Codec Intel IYUV
    IYUV
    iyuv_32.dll
    6.1.7601.17514
    ICM
    Toshiba YUV Codec
    Y411
    tsbyuv.dll
    6.1.7601.17514
    ICM
    Codec Cinepak de Radius
    cvid
    iccvid.dll
    1.10.0.13
    DMO
    Mpeg4s Decoder DMO
    mp4s, MP4S, m4s2, M4S2, MP4V, mp4v, XVID, xvid, DIVX, DX50
    mp4sdecd.dll
    6.1.7600.16385
    DMO
    WMV Screen decoder DMO
    MSS1, MSS2
    wmvsdecd.dll
    6.1.7601.17514
    DMO
    WMVideo Decoder DMO
    WMV1, WMV2, WMV3, WMVA, WVC1, WMVP, WVP2
    wmvdecod.dll
    6.1.7601.18221
    DMO
    Mpeg43 Decoder DMO
    mp43, MP43
    mp43decd.dll
    6.1.7600.16385
    DMO
    Mpeg4 Decoder DMO
    MPG4, mpg4, mp42, MP42
    mpg4decd.dll
    6.1.7600.16385
    De : sarika02 
    Envoyé : 17 juin 2014 19:26
    À : Daniel Cloutier
    Objet :  On photoshop element 12 when I open a .MTS file I have the sound with a black screen if I open a .mov it work fine I have uninstall and reinstall I still have the same problem can you help?
    On photoshop element 12 when I open a .MTS file I have the sound with a black screen if I open a .mov it work fine I have uninstall and reinstall I still have the same problem can you help?
    created by sarika02 <https://forums.adobe.com/people/sarika02>  in Photoshop Elements - View the full discussion <https://forums.adobe.com/message/6466796#6466796>

  • My MacBook Pro Early 2008 freezes up with  Kernel Panic, i restarting by pressing the power button for about 8 to 10 seconds, but nothing happen and still getting kernel panic 9c2028 10.5.2 Darwin 9.2.1 Anybody please help me get out this panic.

    I am writting to ask for help with my old version MacBook Pro early 2008 with Kernel Panic 9C2028 10.5.2 Darwin 9.2.1. My MacBook Pro freezes up with a panic and have to shut it down by pressing and holding the power button. When I restard the comp it keep showing the same Kernel Panic. Will any body outthere heppe me get out this freezes up panic kernel Darwin 9.2.1.
    Thanks You

    Looks like a RAM failure or maybe another hardware failure.
    Can you take out the battery and with the charger connected start up? Same failure?
    Have you tried the SMC reset and PRAM reset? do both twice.

  • [SOLVED] No sound (with flash)

    Hello.
    I have no sound with flash. It does work elsewhere.
    I am using ALSA.
    My flash should output audio correctly according to wiki: https://wiki.archlinux.org/index.php/Fl … d_in_Flash
    # aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: PCH [HDA Intel PCH], device 0: ALC889 Analog [ALC889 Analog]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: PCH [HDA Intel PCH], device 1: ALC889 Digital [ALC889 Digital]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 1: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    EDIT: I'm retarded. I didn't add my user to audio group. And sound elsewhere was from speaker-test which needs SU.
    Last edited by handl3r (2012-01-22 07:39:34)

    codemac wrote:
    Orrrr it's because the flash plugin uses OSS.
    run `aoss firefox` and be happy.
    OSS does still work or at least the alsa backwards compatibility layer that emulates the old interfaces, right? did i miss anything?
    for newer versions of flash (like version 9) simply install firefox in wine and let it install the plugin. that usually works great!

  • NO SOUND with iMAC 24 - Please help

    I have tried everything.........searched for drivers, everything, installed boot camp drivers from the CD numerous times.........I can't get rid of the ?pci device that shows up in the device manager. I am using windows xp sp3. The ? still shows up in the device list and I have no sound............everything else is perfect and great, but can't get sound!!!!!!!! I tried to update driver from realtek and sigmatel from the location on the hard drive and CD and no help. I DLed new drivers from realtek, no help..............does anyone know??????????

    For those that are interested, this DOES work, as I have just tried this using SP3...........this is from another forum:
    http://www.techarp.com/showarticle.aspx?artno=490
    Basicly, download the file at the bottom of the page, unzip, go to Device Manager, right click the yellow (?) PCI driver, mark to select your own location and direct it to where you unzipped your file. That's it. UAA driver should be found and you should be able to hear sound.
    If not yet, try now to re-install your audio drivers, and it should work. (if on mac, that means re-install boot camp drivers).
    When doing the above, if it asks about a missing file, then point to where you just unzipped everything, it should be there, as it was for me. And, finally, in device manager, I still had one more issue for "audio device on high definition BUS" AFTER i corrected the PCI. To fix this, in device manager, I simply selected UPDATE DRIVER and use the MAC CD (or BOOTCAMP) and reinstalled the drivers and all worked fine after...................
    I now have sound with my IMAC 24in and Windows XP SP3 (yes, i don't want to use much of XP at all, but it's nice to have............
    Enjoy and let me know if this works or if you have issues, I would love to actually try and help...........
    --pe@ce

Maybe you are looking for