Beiträge von iampivot

    Sorry, it looks like the editor removes newlines in my code blocks.


    Code
    root@htpc:~# ir-keytableFound /sys/class/rc/rc0/ (/dev/input/event5) with:        Driver (null), table rc-dib0700-rc5	        Supported protocols: NEC RC-5 RC-6        Enabled protocols: RC-5        Repeat delay = 500 ms, repeat period = 33 msFound /sys/class/rc/rc1/ (/dev/input/event6) with:	        Driver (null), table rc-dib0700-rc5	        Supported protocols: NEC RC-5 RC-6         Enabled protocols: RC-5         Repeat delay = 500 ms, repeat period = 33 msroot@htpc:~#



    Code
    root@htpc:~# ir-keytable -rscancode 0x0042 = KEY_POWER (0x74)scancode 0x007d = KEY_CHANNELDOWN (0x193)scancode 0x0172 = KEY_SHUFFLE (0x19a)scancode 0x017d = KEY_VOLUMEDOWN (0x72)scancode 0x0242 = KEY_CHANNELUP (0x192)scancode 0x0342 = KEY_MUTE (0x71)scancode 0x037d = KEY_VOLUMEUP (0x73)scancode 0x0443 = KEY_2 (0x03)scancode 0x047c = KEY_CHANNEL (0x16b)scancode 0x057c = KEY_8 (0x09)scancode 0x0643 = KEY_5 (0x06)scancode 0x0700 = KEY_MUTE (0x71)scancode 0x0701 = KEY_MENU (0x8b)scancode 0x0703 = KEY_VOLUMEUP (0x73)scancode 0x0706 = KEY_CHANNELUP (0x192)scancode 0x0709 = KEY_VOLUMEDOWN (0x72)scancode 0x070c = KEY_CHANNELDOWN (0x193)scancode 0x070f = KEY_1 (0x02)scancode 0x0710 = KEY_3 (0x04)scancode 0x0711 = KEY_7 (0x08)scancode 0x0712 = KEY_9 (0x0a)scancode 0x0715 = KEY_2 (0x03)scancode 0x0718 = KEY_4 (0x05)scancode 0x071b = KEY_5 (0x06)scancode 0x071e = KEY_6 (0x07)scancode 0x0721 = KEY_8 (0x09)scancode 0x0724 = KEY_SCREEN (0x177)scancode 0x0727 = KEY_0 (0x0b)scancode 0x072a = KEY_TEXT (0x184)scancode 0x072d = KEY_REWIND (0xa8)scancode 0x0730 = KEY_PLAY (0xcf)scancode 0x0733 = KEY_FASTFORWARD (0xd0)scancode 0x0736 = KEY_RECORD (0xa7)scancode 0x0739 = KEY_POWER (0x74)scancode 0x073c = KEY_STOP (0x80)scancode 0x073f = KEY_CANCEL (0xdf)scancode 0x0743 = KEY_0 (0x0b)scancode 0x077c = KEY_TUNER (0x182)scancode 0x0840 = KEY_SCREEN (0x177)scancode 0x097f = KEY_6 (0x07)scancode 0x0a40 = KEY_9 (0x0a)scancode 0x0b70 = KEY_RECORD (0xa7)scancode 0x0b7f = KEY_3 (0x04)scancode 0x0c41 = KEY_1 (0x02)scancode 0x0c4e = KEY_PLAYPAUSE (0xa4)scancode 0x0d7e = KEY_7 (0x08)scancode 0x0e41 = KEY_4 (0x05)scancode 0x0e4e = KEY_CLEAR (0x163)scancode 0x0f41 = KEY_LAST (0x195)scancode 0x0f4e = KEY_PRINT (0xd2)scancode 0x0f71 = KEY_DOT (0x34)scancode 0x1d00 = KEY_0 (0x0b)scancode 0x1d01 = KEY_1 (0x02)scancode 0x1d02 = KEY_2 (0x03)scancode 0x1d03 = KEY_3 (0x04)scancode 0x1d04 = KEY_4 (0x05)scancode 0x1d05 = KEY_5 (0x06)scancode 0x1d06 = KEY_6 (0x07)scancode 0x1d07 = KEY_7 (0x08)scancode 0x1d08 = KEY_8 (0x09)scancode 0x1d09 = KEY_9 (0x0a)scancode 0x1d0a = KEY_TEXT (0x184)scancode 0x1d0d = KEY_MENU (0x8b)scancode 0x1d0f = KEY_MUTE (0x71)scancode 0x1d10 = KEY_VOLUMEUP (0x73)scancode 0x1d11 = KEY_VOLUMEDOWN (0x72)scancode 0x1d12 = KEY_CHANNEL (0x16b)scancode 0x1d14 = KEY_UP (0x67)scancode 0x1d15 = KEY_DOWN (0x6c)scancode 0x1d16 = KEY_LEFT (0x69)scancode 0x1d17 = KEY_RIGHT (0x6a)scancode 0x1d1c = KEY_TV (0x179)scancode 0x1d1e = KEY_NEXT (0x197)scancode 0x1d1f = KEY_BACK (0x9e)scancode 0x1d20 = KEY_CHANNELUP (0x192)scancode 0x1d21 = KEY_CHANNELDOWN (0x193)scancode 0x1d24 = KEY_LAST (0x195)scancode 0x1d25 = KEY_OK (0x160)scancode 0x1d30 = KEY_PAUSE (0x77)scancode 0x1d32 = KEY_REWIND (0xa8)scancode 0x1d34 = KEY_FASTFORWARD (0xd0)scancode 0x1d35 = KEY_PLAY (0xcf)scancode 0x1d36 = KEY_STOP (0x80)scancode 0x1d37 = KEY_RECORD (0xa7)scancode 0x1d3b = KEY_GOTO (0x162)scancode 0x1d3d = KEY_POWER (0x74)scancode 0x1e00 = KEY_0 (0x0b)scancode 0x1e01 = KEY_1 (0x02)scancode 0x1e02 = KEY_2 (0x03)scancode 0x1e03 = KEY_3 (0x04)scancode 0x1e04 = KEY_4 (0x05)scancode 0x1e05 = KEY_5 (0x06)scancode 0x1e06 = KEY_6 (0x07)scancode 0x1e07 = KEY_7 (0x08)scancode 0x1e08 = KEY_8 (0x09)scancode 0x1e09 = KEY_9 (0x0a)scancode 0x1e0a = KEY_KPASTERISK (0x37)scancode 0x1e0b = KEY_RED (0x18e)scancode 0x1e0c = KEY_RADIO (0x181)scancode 0x1e0d = KEY_MENU (0x8b)scancode 0x1e0e = KEY_GRAVE (0x29)scancode 0x1e0f = KEY_MUTE (0x71)scancode 0x1e10 = KEY_VOLUMEUP (0x73)scancode 0x1e11 = KEY_VOLUMEDOWN (0x72)scancode 0x1e12 = KEY_CHANNEL (0x16b)scancode 0x1e14 = KEY_UP (0x67)scancode 0x1e15 = KEY_DOWN (0x6c)scancode 0x1e16 = KEY_LEFT (0x69)scancode 0x1e17 = KEY_RIGHT (0x6a)scancode 0x1e18 = KEY_VIDEO (0x189)scancode 0x1e19 = KEY_AUDIO (0x188)scancode 0x1e1a = KEY_MEDIA (0xe2)scancode 0x1e1b = KEY_EPG (0x16d)scancode 0x1e1c = KEY_TV (0x179)scancode 0x1e1e = KEY_NEXT (0x197)scancode 0x1e1f = KEY_BACK (0x9e)scancode 0x1e20 = KEY_CHANNELUP (0x192)scancode 0x1e21 = KEY_CHANNELDOWN (0x193)scancode 0x1e24 = KEY_LAST (0x195)scancode 0x1e25 = KEY_OK (0x160)scancode 0x1e29 = KEY_BLUE (0x191)scancode 0x1e2e = KEY_GREEN (0x18f)scancode 0x1e30 = KEY_PAUSE (0x77)scancode 0x1e32 = KEY_REWIND (0xa8)scancode 0x1e34 = KEY_FASTFORWARD (0xd0)scancode 0x1e35 = KEY_PLAY (0xcf)scancode 0x1e36 = KEY_STOP (0x80)scancode 0x1e37 = KEY_RECORD (0xa7)scancode 0x1e38 = KEY_YELLOW (0x190)scancode 0x1e3b = KEY_GOTO (0x162)scancode 0x1e3d = KEY_POWER (0x74)scancode 0xeb01 = KEY_POWER (0x74)scancode 0xeb02 = KEY_1 (0x02)scancode 0xeb03 = KEY_2 (0x03)scancode 0xeb04 = KEY_3 (0x04)scancode 0xeb05 = KEY_4 (0x05)scancode 0xeb06 = KEY_5 (0x06)scancode 0xeb07 = KEY_6 (0x07)scancode 0xeb08 = KEY_7 (0x08)scancode 0xeb09 = KEY_8 (0x09)scancode 0xeb0a = KEY_9 (0x0a)scancode 0xeb0b = KEY_VIDEO (0x189)scancode 0xeb0c = KEY_0 (0x0b)scancode 0xeb0d = KEY_REFRESH (0xad)scancode 0xeb0f = KEY_EPG (0x16d)scancode 0xeb10 = KEY_UP (0x67)scancode 0xeb11 = KEY_LEFT (0x69)scancode 0xeb12 = KEY_OK (0x160)scancode 0xeb13 = KEY_RIGHT (0x6a)scancode 0xeb14 = KEY_DOWN (0x6c)scancode 0xeb16 = KEY_INFO (0x166)scancode 0xeb17 = KEY_RED (0x18e)scancode 0xeb18 = KEY_GREEN (0x18f)scancode 0xeb19 = KEY_YELLOW (0x190)scancode 0xeb1a = KEY_BLUE (0x191)scancode 0xeb1b = KEY_CHANNELUP (0x192)scancode 0xeb1c = KEY_VOLUMEUP (0x73)scancode 0xeb1d = KEY_MUTE (0x71)scancode 0xeb1e = KEY_VOLUMEDOWN (0x72)scancode 0xeb1f = KEY_CHANNELDOWN (0x193)scancode 0xeb40 = KEY_PAUSE (0x77)scancode 0xeb41 = KEY_HOME (0x66)scancode 0xeb42 = KEY_MENU (0x8b)scancode 0xeb43 = KEY_SUBTITLE (0x172)scancode 0xeb44 = KEY_TEXT (0x184)scancode 0xeb45 = KEY_DELETE (0x6f)scancode 0xeb46 = KEY_TV (0x179)scancode 0xeb47 = KEY_DVD (0x185)scancode 0xeb48 = KEY_STOP (0x80)scancode 0xeb49 = KEY_VIDEO (0x189)scancode 0xeb4a = KEY_AUDIO (0x188)scancode 0xeb4b = KEY_SCREEN (0x177)scancode 0xeb4c = KEY_PLAY (0xcf)scancode 0xeb4d = KEY_BACK (0x9e)scancode 0xeb4e = KEY_REWIND (0xa8)scancode 0xeb4f = KEY_FASTFORWARD (0xd0)scancode 0xeb54 = KEY_PREVIOUS (0x19c)scancode 0xeb58 = KEY_RECORD (0xa7)scancode 0xeb5c = KEY_NEXT (0x197)Enabled protocols: RC-5

    I have been running a yavdr 0.4 installation for about a week with the grey (snowboard shaped) hauppauge remote working ok on the nova-t 500's remote sensor working ok. Today I updated with apt-get dist-upgrade, and now the remote doesn't work.


    I can see some keys being seen, when running irw. Eg. Ch+/- works. Some other keys seems to work but give totally wrong symbols; eg. arrow right results in KEY_ENTER, Vol +/- results in KEY_LEFT / KEY_RIGHT.


    Am thinking somehow that the codes are being interpreted as from a totally different remote? What's the correct way to debug this and to possibly manually create the correct code to key mapping file?

    Virtual consoles are not disabled, at least vt2 and vt3 are always usable, but to this time during boot the virtual consoles are generally not active and nothing could be done to enable them.

    Ok, I've never been able to activate them, I only get a blinking cursor, no login prompt. But this might rather be to me using the properietary nvidia gfx driver?

    Thank You!


    In the end it was the computer waiting for an S or an M key, since a volume in /etc/fstab was missing on boot.


    Am thinking it would be nice if yavdr enabled virtual consoles, it would make things easier when a ssh login is not feasible (as in this case).

    How do I enable boot logging with yavdr? Having just a black screen is nice and all when everything is sailing smooth, but more than often I need to see boot messages. Is there a secret key combo?

    I found the problem. Somehow a symbolic link had been added in /srv/vdr/video.00;


    lrwxrwxrwx 1 vdr plugdev 9 2010-12-27 20:46 FC11 -> /mnt/fc12/


    Ie. a symbolic link to my other disk volume, which contains a full linux installation.


    I assume this is due to some logic in yavdr that it automatically adds mounted disks so that VDR will find recordings on them. I guess some sort of logic where it would detect if a mounted volume is indeed a VDR disk / directory or not.

    Zitat

    Originally posted by andreash
    Ah, had the same issue lately, where I had linux kernel sources in the video directory (for lack of space on the root disk).


    There are two other possible causes for long running video directory scanner threads:
    1. different time on the client and server, when the video dir is mounted via network
    2. the .update file in the video dir is frequently touched. this causes an immediate run of these threads.


    None of these applies to my case, nor have I put any unrelated files into the vdr video directory.


    I do see some very long file names though, this shouldn't be any concern? Eg.


    /srv/vdr/video.00/Glee/Concerned_that_Sue_is_up_to_no_good,_Will_pays_a_visit_to_the_instructor_of_a_competing_Glee_Club_to_see_what_information_she_might_be_leaking._Meanwhile_Kurt_gives_Rachel_a_makeover_to_impress_Finn./2010-12-27.19.28.10-0.rec


    Also, I cannot see any info from VDR in /var/log/messages about it starting any video directory threads, which is normally shown. Is there no log configured for vdr in yavdr?

    Zitat

    Originally posted by gda
    You forgot to describe the hardware. Hopefully you are not using the default iptv channels anymore?


    No, only DVB-T (Australia). I've got two nova-t 500 cards in a box with an Aopen i915Ga-HFS motherboard with a pentium M 1700MHz processor with a geforce 9500 gfx card. vdr-sxfe cpu usage is not low with this processor, even with vdpau, but has proven sufficient with my homegrown vdr setup in the past.


    Unfortunately, I've been using Fedora and other redhat based distros in the past, so am a bit new to ubuntu and how to patch and recompile packages.


    Zitat

    Originally posted by TomJoad
    top -H -b -n1 might give the vdr-thread with highest usage


    I guess this is the root of the problem. What does those video directory processes do? Have included the output of mount below.


    root@ubuntu:~# top -H -b -n1
    top - 20:21:50 up 8 min, 3 users, load average: 6.56, 5.11, 2.40
    Tasks: 193 total, 6 running, 187 sleeping, 0 stopped, 0 zombie
    Cpu(s): 31.3%us, 37.6%sy, 0.4%ni, 0.3%id, 24.2%wa, 4.1%hi, 2.1%si, 0.0%st
    Mem: 1544120k total, 885908k used, 658212k free, 231832k buffers
    Swap: 4523000k total, 0k used, 4523000k free, 211348k cached


    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    1990 vdr 10 -10 437m 41m 10m R 35.1 2.8 1:19.85 video directory
    1989 vdr 10 -10 437m 41m 10m R 34.1 2.8 1:19.85 video directory
    2044 vdr 10 -10 177m 53m 13m S 11.4 3.5 0:58.27 vdr-sxfe
    2043 vdr 10 -10 177m 53m 13m S 2.1 3.5 0:04.96 vdr-sxfe
    2045 vdr 10 -10 177m 53m 13m S 2.1 3.5 0:03.71 vdr-sxfe
    2061 vdr 10 -10 437m 41m 10m S 1.0 2.8 0:02.92 recording
    2062 vdr 10 -10 437m 41m 10m S 1.0 2.8 0:02.64 receiver on dev
    2070 vdr 10 -10 437m 41m 10m S 1.0 2.8 0:03.61 recording
    2041 vdr 10 -10 177m 53m 13m S 1.0 3.5 0:44.75 vdr-sxfe




    /dev/sdc2 on / type ext4 (rw,errors=remount-ro)
    [...]
    /dev/sda4 on /mnt/fc12 type ext3 (rw)
    /dev/mapper/video_volume_group-videolv on /video type ext4 (rw)

    Apologies if this problem has been described before, but my German is a bit rusty, so it's a bit hard to search the boards.


    I've been running yavdr instead of my old homecooked VDR setup for about a week, and have ironed out a few quirks. However, it seems that VDR is using a lot of CPU, and I can't seem to find any reason for it. I'm running with xineliboutput plugin and vdpau. Here's the output of top;


    top - 22:41:36 up 1:51, 3 users, load average: 6.22, 6.41, 6.34
    Tasks: 124 total, 1 running, 123 sleeping, 0 stopped, 0 zombie
    Cpu(s): 33.9%us, 63.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 2.5%hi, 0.6%si, 0.0%st
    Mem: 1544120k total, 762368k used, 781752k free, 241720k buffers
    Swap: 4523000k total, 0k used, 4523000k free, 155840k cached


    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    2615 vdr 10 -10 402m 35m 10m S 78.3 2.4 13:54.38 vdr
    2705 vdr 10 -10 171m 50m 13m S 20.0 3.4 3:37.15 vdr-sxfe
    2060 root 20 0 2544 1192 904 S 0.3 0.1 0:06.15 top
    [...]


    Is there a plugin running by default which might cause high cpu usage?


    Am running yavdr 0.3a updated to latest with apt-get dist-upgrade.