Monday, 25 June 2012

Canon LBP-1120 error

If your Canon LBP-1120 or similar "winprinter" (same idea as the old winmodem) stops working under linux and CUPS gives you a "ccp recv_packet error, exit" message then maybe a recent update blacklisted the usblp module.
I fixed my Debian box by commenting out the last line in /etc/modprobe.d/blacklist-cups-usblp.conf

Happy tree murdering!

Sunday, 10 June 2012

More FGLRX pain.

Yesterday's upgrade left me with no X and a "No supported display adapter found" error in Xorg.0.log. :(
After some digging I eventually find that the latest FGLRX release has dropped support for HD4xxx and older chipsets!  Gee, thanks ATI.
Here's what I've done to pin an older ATI Catalyst driver from
First step was to find the FGLRX version i needed from the changelogs:

And the date for a compatible X server:

Giving me two lines to add to /etc/apt/sources.list:
#fglrx 12.4.1 pinned from here for now: 4670 not supported after this date
deb unstable main contrib non-free

#xorg 1.11.2 from as required by fglrx
deb unstable main contrib non-free

A couple of stanzas are added to /etc/apt/preferences to prioritize the older versions:
(Not complete, room for improvement here)
# fglrx pinned to hold 12.4.1, later versions don't support 4670
Package: *fglrx* xserver-xorg*
Pin: origin ""
Pin-Priority: 1001

#xorg pinned to provide 1.11.2 as required by fglrx
Package: xserver-xorg-core
Pin: version 2:
Pin-Priority: 1001

And to accept the older packages I created /etc/apt/apt.conf.d/60ignore_repo_date_check
Check-Valid-Until "false";

apt-cache showpkg fglrx-driver will now show the versions available.

apt-get install fglrx-driver=1:12-4-1 installs the desired fglrx version.

apt-get install xserver-xorg=1:7.6+9 installs the corresponding X server

I followed a rather more roundabout route, so YMMV.

After all that fun X works again, but wine 3D performance is abysmal.  TF2 is broken, Red Orchestra is 1 FPS and that's all i tested before I gave up in despair.

 I chose ATI based on their (AMD's) commitment to releasing the specs required for the development of an OS driver, looks like it is time to revisit that subject, stay tuned...

Wednesday, 3 August 2011

USB mouse timeout on Debian

Having to click to wake my USB mouse when it suspends after 2 seconds is irritating.
A little searching turns up a decent explanation:

An immediate solution is to flick the switch:
(as root)
 echo "-1" > /sys/bus/usb/devices/5-2/power/autosuspend_delay_ms

Unfortunately  a USB device comes and goes and won't always be "5-2" making it inconvenient to script.

Now tweaking the module config might seem a solution:
echo "options usbcore autosuspend=-1" >> /etc/modprobe.d/usb_suspend.conf

But it didn't work.   I'm guessing usbcore is compiled in and needs a kernel parameter passed.

To be continued...

Saturday, 28 May 2011

Scale Fail

I'll be reading some more of this guy's work...