Install Brother HL-2140 on Arch Linux

I bought Brother HL-2140 laser printer months ago and that time it was automatically configured in Ubuntu Hardy. Since I replaced my system with Archlinux, I had to reinstall the driver. Today I tried to install the driver, following the article “Brother HL-2040” on archwiki.

The instructions are almost the same, as well as the drivers. I tried the official 2.0.2-1 driver which is for HL-2140, however, not working. Instead, the driver for HL-2040, which version is 2.0.1-1 works fine for me.

Here is the instructions.

  1. install cups first

    > pacman -S cups
    > pacman -S lib32-libcups (if you’re using x86-64
    )

  2. downlaod the rpm packages of lpr driver and the cups wrapper
  3. extract rpm files

    > rpmextract.sh brhl2040lpr-2.0.1-1.i386.rpm
    > rpmextract.sh cupswrapperHL2040-2.0.1-1.i386.rpm

    if u do not have rpmextract,

    > pacman -S rpmextract

  4. replace all instances of /etc/init.d/ with /etc/rc.d/ in ./usr/local/Brother/cupswrapper/cupswrapperHL2040-2.0.1
  5. replace all instances of /etc/printcap.local with /etc/printcap in ./usr/local/Brother/inf/setupPrintcap
  6. copy ./usr/ and ./var/ (these are extracted from rpm files and already modified in step #4,5) to /usr/ and /var/ respectively
  7. run the script to complete installation, it would aumatically restart cups server

    > /usr/local/Brother/cupswrapper/cupswrapperHL2040-2.0.1

  8. finally, u can go to cups server http://localhost:631/ to have a test page as u like.

ps, if you meet some problem with cups error, you may refer to this post (link)

T400: Cardreader

modprobe sdhci

we can also add “sdhci” in rc.conf to make it automatically start 🙂

T400系列:WebCam笔记

一开就死机啊 整个X都crash了

备忘一下(链接在这里):
Webcam

The webcam in T61 is some sort of UVC camera: Found UVC 1.00 device Integrated Camera (17ef:1004). The module loads out of the box. I tested the camera using: Luvcview: http://mxhaard.free.fr/spca50x/Investigation/uvc/luvcview-20070512.tar.gz Just compile and run using ./luvcview -f yuv (JPG format doesn’t work)

I also tried gqcam and webcam, but both doesn’t work (first SEGFAULTs, second prints Invalid argument)

luvcview has a button to take pictures. Place your mouse over the buttons at the bottom of the window, and their function is revealed in the title bar. Unfortunately, the button for avi capture does not seem to work (although it does tell you what the video framerate is, which is helpful).

To capture a video stream, run ./luvcview -f yuv -S To play back the video stream, run mplayer -demuxer rawvideo -rawvideo fps=7:w=320:h=240:yuy2 stream.raw

T400系列:Intel Wifi 5100 drivers

an awesome thread in ubuntuforums could be referred and there is a “step-by-step” on page 2.

following these steps and i compiled it in the kernel of 2.6.24-21 then make install in 2.6.24-19, finally it works!