Compilazione modulo TBS 6922 per scheda digitale

Compilazione TBS 6922

  1. download del media tree
  2. copia della cartella tbs/linux-tbs-drivers/linux/drivers/media/common/saa716x/ in media_build/linux/drivers/media/common/
  3. copia dei file tbs/linux-tbs-drivers/linux/drivers/media/dvb/frontend/tbs*.h il media_build/linux/drivers/media/dvb-frontend/
  4. copia del file tbs/linux-tbs-drivers/linux/drivers/media/dvb/frontends/stv090x.h a media_build/linux/drivers/media/dvb-frontend/
  5. esecuzione di v4l/tbs-x86_r3.sh
  6. copia dei file tbs/linux-tbs-drivers/*.o a media_build/v4l/
  7. Patch per rimuovere errori di compilazione
  8. make

TBS tuner ? The wrong tuner card for Linux!

Since 6 months I bought a new satellite dish, which point to Astra so I can improve my Deutsch :). I used an old Pinnacle card as a receiver, but this old card doesn’t support dvb-s2. On the same machine I have two other cards:

  • TerraTec Cinergy T PCIe dual
  • Technisat Skystar2 PCI DVB-S

Recently some German channels (Das Erste HD, Arte HD,  ZDF HD,…) started to transmit in HD using the dvbs2 standard, so I decided to buy a new card. the requirements where very simple:

  • low profile, so if I decide to buy a new case I can choose a smaller one
  • support for dvb-s2
  • compatible with linux, without too much pain (based on my experience on linux there is always some pain)
  • remote not needed, in fact for me a new remote is simply a new trash
  • not too expensive, in fact i replace an already working card

After googling around for a while I found the card that looked good for my needs, and reading the instructions the driver seems really simple to install, my choice was the TBS6922. A few days later the card is delivered and in a few minutes the card gets installed. I follow strictly the build instructions and surprise surprise… the card works, but my TerraTec Cinergy T PCIe dual doesn’t work anymore. I lost a whole day trying to make everything work and at the end I also upgraded my HTPC station to the unstable release of Ubuntu 13.04 getting each hour more and more angry, and with kernel 3.8.?? the driver doesn’t build anymore.

What the people in TBS call driver is in fact a the whole kernel module for video, including the base video, video_buf, video_dvb and all other video/card drivers from an old version of linux! Yes! Your system gets downgraded, in fact if you install the TBS driver all your kernel modules in kernel/drivers/video get downgraded to an older version and you will never ever know which older version it is. So you will experiment things not working, bugs out-coming, compatibility issues and all you can thing about when you install old (obsolete) things on newer system with recent hardware.

What TBS developer should do is simply inform better on their site that they make their hardware working on linux by potentially braking the functionality of other hardware. Technically the approach approach should  be a dkms module like nvidia or others.

I’m still waiting from the TBS people a solution to my issue, perhaps I will receive an answer only after the  TerraTec Cinergy T PCIe dual has become obsolete…hope someone on the internet will help. If you have some hint please write me 🙂

Lexmark driver demon log: the final solution

Sometimes I do stupid things, like looking inside my syslog, even if the system seems to work correctly. Last week I have done exactly this stupid thing and I saw this log repeated each 20 seconds:

Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/demon.cpp   : 234  main                 — Checking for USB scanners…
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 79   getScanners          — ::::::::::::::: METHOD START :::::::::::::::
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 213  getUsbScanners       — ::::::::::::::: METHOD START :::::::::::::::
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 221  getUsbScanners       — finding attached HID devices…
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 131  getHidDevices        — ::::::::::::::: METHOD START :::::::::::::::
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/usb/hiddev0. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/usb/hiddev1. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/usb/hiddev2. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/usb/hiddev3. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/usb/hiddev4. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/usb/hiddev5. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/usb/hiddev6. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/usb/hiddev7. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/usb/hiddev8. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/usb/hiddev9. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/usb/hiddev10. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/usb/hiddev11. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/usb/hiddev12. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/usb/hiddev13. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/usb/hiddev14. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/usb/hiddev15. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hiddev0. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hiddev1. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hiddev2. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hiddev3. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hiddev4. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hiddev5. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hiddev6. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hiddev7. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hiddev8. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hiddev9. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hiddev10. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hiddev11. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hiddev12. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hiddev13. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hiddev14. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hiddev15. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hid/usb/hiddev0. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hid/usb/hiddev1. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hid/usb/hiddev2. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hid/usb/hiddev3. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hid/usb/hiddev4. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hid/usb/hiddev5. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hid/usb/hiddev6. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hid/usb/hiddev7. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hid/usb/hiddev8. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hid/usb/hiddev9. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hid/usb/hiddev10. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hid/usb/hiddev11. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hid/usb/hiddev12. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hid/usb/hiddev13. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hid/usb/hiddev14. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 158  getHidDevices        — failed in opening HIDDEV file: /dev/hid/usb/hiddev15. No such file or directory
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 197  getHidDevices        — ::::::::::::::: METHOD END :::::::::::::::
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 223  getUsbScanners       — total HID devices found: 0
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 226  getUsbScanners       — ::::::::::::::: METHOD END :::::::::::::::
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 92   getScanners          — getUsbScanners successful
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/discovery.c : 125  getScanners          — ::::::::::::::: METHOD END :::::::::::::::
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/demon.cpp   : 240  main                 — usb scanners found is 0
Apr  2 10:55:53 luigi-ThinkPad-T510 demond: [P:2377 T:-1220327728] src/demon.cpp   : 309  main                 — End of checking for USB scanners.

At first I thought “Oh my god, what is happening to my laptop? It’s going to break down!!!” and I almost started to cry (no it’s not true, it a joke. I just thought: “why do developers write silly things everywhere? Deamed me that I took a look inside the syslog !”).

So googling arround for a solution I found only a guy with the same issue and no solution at all, sure very few people look inside the syslog.

Today I had some time to spend to remove this crap from the log, and finally I found the solution, or at least I think it could be the solution, becouse by now I didn’t test if everything work well with my lexmark all in one printer/scanner.

Ok, This is my solution; open and edit the file /etc/X11/Xsession.d/99demon2. This is the original content:

DAEMON=/usr/local/lexmark/legacy/bin/demond
NAME=demond
export ENABLE_D_LOG=1
DESC=”Device Monitor”

${DAEMON} lexmark > /dev/null 2>&1 &

Replace the “export ENABLE_D_LOG=1” with “export ENABLE_D_LOG=0”.

That’s all. To make it work you need to log off and start a new X11 session.

 

Strange locale things happen under Tomcat/Jasper

I recently installed a webapp which uses tomcat and jasper on one of my server. Everything worked well until a template used some special chars, I got the ‘?’ chars which indicate the typical encoding issue.

Everything seemed correct, DB in UTF-8, virtual machine started with -Dfile.encoding=UTF-8, application in UTF-8, data files in UTF-8.

After an hour spend in all these checks I tried an “export LANG=it_IT.utf8” in my linux environment. Everything worked well.

Where is the point? Very simple, some jar don’t look in the JVM system properties but look for the native locale in the linux enviroment. This causes portability issues and lost of time in solving stupid problems.

WP to LinkedIn Auto Publish Powered By : XYZScripts.com