2011-06-09, 23:01
Hi,
here is a little guide showing how I managed to make my DVD player silent. No more plane noise.
This has been done on XBMC LIVE using halevt ( http://www.nongnu.org/halevt/ )
Here we go :
1. start a terminal as user "xbmc"
2. Install halevt :
3. Edit halevt configuration :
4. replace its content :
5. login as root
6. we have to give halevt daemon the right to sudo.
7. add this to the end of the file
8. Reboot and enjoy the silence.
Hope this helps.
here is a little guide showing how I managed to make my DVD player silent. No more plane noise.
This has been done on XBMC LIVE using halevt ( http://www.nongnu.org/halevt/ )
Here we go :
1. start a terminal as user "xbmc"
2. Install halevt :
Code:
$ sudo apt-get install halevt
Code:
$ nano /etc/halevt/halevt.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<halevt:Configuration version="0.1" xmlns:halevt="http://www.environnement.ens.fr/perso/dumas/halevt.html">
<halevt:Device match="hal.volume.disc.has_audio = true">
<halevt:Insertion exec="sudo /sbin/hdparm -E4 $hal.block.device$" />
<halevt:OnInit exec="sudo /sbin/hdparm -E4 $hal.block.device$" />
</halevt:Device>
<halevt:Device match="hal.volume.disc.is_videodvd = true">
<halevt:Insertion exec="sudo /sbin/hdparm -E12 $hal.block.device$" />
<halevt:OnInit exec="sudo /sbin/hdparm -E12 $hal.block.device$" />
</halevt:Device>
</halevt:Configuration>
Code:
$ su root
Code:
$ visudo
Code:
### HALEVT-specific configuration ###
# HALEVT
Cmnd_Alias CMDS = /sbin/hdparm # HALEVT
halevt ALL=NOPASSWD: CMDS #HALEVT
Hope this helps.