Monday, October 29, 2012

HandBrake for PSP 3000 with firmware 6.60

I had good success using the following command line (based off of the "iPhone & iPod Touch" preset):


HandBrakeCLI -e x264  -q 20.0 -a 1 -E faac -B 128 -6 dpl2 -R Auto -D 0.0 -f mp4 -X 480 -Y 272 -m -x cabac=0:ref=2:me=umh:bframes=0:weightp=0:subme=6:8x8dct=0:trellis=0 -i /dev/dvd -o ~/movie1.mp4 -t 12

Now you can create your own H264-encoded movies for the original PSP. Y-E-S!

Sunday, May 6, 2012

Logitech BT Mini-Receiver on Debian 6

I had a Logitech MX 5500 bluetooth mouse and keyboard that unfortunately broke. They came with a small USB dongle that can be used as a bluetooth receiver. It took me forever to figure out why the device wasn't registering as a bluetooth receiver on Debian Linux 6.0. Ultimately, the issue was with the udev rules.

In /lib/udev/rules.d/70-hid2hci.rules, I changed these lines:

KERNEL=="hidraw*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c70[4abc]|c71[34bc]", \
  RUN+="hid2hci --method=logitech-hid --devpath=%p"

to:

KERNEL=="hiddev*", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c70[4abc]|c71[34bc]", \
  RUN+="hid2hci --method=logitech-hid --devpath=%p"

Friday, April 13, 2012

snd-intel-hda and speaker popping noise

My particular sound card, HDA NVidia with chip Conexant CX20549 uses the snd-hda-intel kernel module. Unfortunately, the default setting enables a power saving feature which causes the speakers to make a popping noise before and after playing sound. The fix in the past has been to edit /etc/modprobe.d/alsa-base.conf and add the line:

options snd-hda-intel power_save=0 power_save_controller=N

To verify that this is working, you should be able to reload the driver and cat the current value of the kernel module parameter (but I could not get this live reload working):

alsa force-reload
cat /sys/module/snd_hda_intel/parameters/power_save

I rebooted and sound was working. Then, I took my laptop on battery power and I experienced the popping again. Sure enough, the value of power_save had been reset. After searching Google with the right terms, I came across a post which pointed me to a script that was being run by the power management software. The script was resetting the value of power_save, making it appear as if alsa-base.conf were being ignored or that putting the computer to sleep were resetting my options. To patch the script, I set the value of a variable to false. Specifically, I edited /usr/lib/pm/power.d/intel-audio-powersave and set the line starting with "INTEL_AUDIO_POWERSAVE" to:

INTEL_AUDIO_POWERSAVE=false

I hope this helps some poor soul with popping speakers. For the record, I'm running on an HP dv6636nr dv6000 series laptop with Ubuntu 11.10 32-bit.