Hi
I am repporting the same problem as with the 2.4.21-pre5 kernel,
the problem is that I have to start xawtv as root the first time after
a boot to be able to use the TV-card. I have set the premissions on
/dev/video* and /dev/vbi to crw-rw-rw- before i try to start xawtv for
the first time after a boot.
So what happens as a normal user is that xawtv starts but the picture is
black, if I try to change cahnnels so is the picture still black.
Now if i do a: su and start xawtv then I can use the TV-card normaly
after that, so using xawtv as root first must setup som stuff in the
driver that a normal user can't do for some reson. Root and normal user
have the same .xawtv file.
Sorry for spamming, here below is the debug form xawtv when I try to
start it for the first time as a normal user:
This is xawtv-3.81, running on Linux/i686 (2.4.21-pre6)
visual: id=0x23 class=4 (TrueColor), depth=16
visual: id=0x24 class=4 (TrueColor), depth=16
visual: id=0x25 class=4 (TrueColor), depth=16
visual: id=0x26 class=4 (TrueColor), depth=16
visual: id=0x27 class=4 (TrueColor), depth=16
visual: id=0x28 class=4 (TrueColor), depth=16
visual: id=0x29 class=4 (TrueColor), depth=16
visual: id=0x2a class=4 (TrueColor), depth=16
visual: id=0x2b class=4 (TrueColor), depth=16
visual: id=0x2c class=4 (TrueColor), depth=16
visual: id=0x2d class=4 (TrueColor), depth=16
visual: id=0x2e class=4 (TrueColor), depth=16
visual: id=0x2f class=4 (TrueColor), depth=16
visual: id=0x30 class=4 (TrueColor), depth=16
visual: id=0x31 class=4 (TrueColor), depth=16
visual: id=0x32 class=4 (TrueColor), depth=16
visual: id=0x33 class=5 (DirectColor), depth=16
visual: id=0x34 class=5 (DirectColor), depth=16
visual: id=0x35 class=5 (DirectColor), depth=16
visual: id=0x36 class=5 (DirectColor), depth=16
visual: id=0x37 class=5 (DirectColor), depth=16
visual: id=0x38 class=5 (DirectColor), depth=16
visual: id=0x39 class=5 (DirectColor), depth=16
visual: id=0x3a class=5 (DirectColor), depth=16
visual: id=0x3b class=5 (DirectColor), depth=16
visual: id=0x3c class=5 (DirectColor), depth=16
visual: id=0x3d class=5 (DirectColor), depth=16
visual: id=0x3e class=5 (DirectColor), depth=16
visual: id=0x3f class=5 (DirectColor), depth=16
visual: id=0x40 class=5 (DirectColor), depth=16
visual: id=0x41 class=5 (DirectColor), depth=16
visual: id=0x42 class=5 (DirectColor), depth=16
x11: color depth: 16 bits, 2 bytes - pixmap: 2 bytes
x11: color masks: red=0x0000f800 green=0x000007e0 blue=0x0000001f
x11: server byte order: little endian
x11: client byte order: little endian
check if the X-Server is local ... **** ok
x11 socket: me=localhost, server=localhost
main: dga extention...
DGA version 2.0
main: xinerama extention...
main: xvideo extention [video]...
Xvideo: 1 adaptors available.
Xvideo: 3dfx Video Overlay: input image, ports 83-83
Xvideo: no usable video port found
main: xvideo extention [image]...
image format list for port 83
0x32595559 (YUY2) packed [ok: 16 bit YUV 4:2:2 (packed)]
0x59565955 (UYVY) packed
0x32315659 (YV12) planar
0x30323449 (I420) planar [ok: 12 bit YUV 4:2:0 (planar)]
main: init main window...
main: install signal handlers...
main thread [pid=1328]
main: open grabber device...
x11: 1024x768, 16 bit/pixel, 2048 byte/scanline, DGA
using X11 display :0.0 (dga available)
video mode: 1024x768, 16 bit/pixel, 2048 byte/scanline
framebuffer at 0xe8041000
/dev/video0: ioctl VIDIOCSFBUF: Operation not permitted
got sigchild
waitpid: Inga barnprocesser
v4l-conf had some trouble, trying to continue anyway
vid-open: trying: v4l2-old...
vid-open: failed: v4l2-old
vid-open: trying: v4l2...
ioctl:
VIDIOC_QUERYCAP(driver="";card="";bus_info="";version=0.0.0;capabilities=0x0
[]): Invalid argument
vid-open: failed: v4l2
vid-open: trying: v4l...
v4l: open: /dev/video0 (BT878(Hauppauge (bt878)))
capabilities: capture tuner overlay clipping frameram scales
size : 48x32 => 924x576
channels: 4
ioctl: VIDIOCGCHAN(channel=0;name="Television";tuners=1;flags=0x3
[TUNER,AUDIO];type=TV;norm=0): ok
Television: 1 tuner audio tv
ioctl: VIDIOCGCHAN(channel=1;name="Composite1";tuners=0;flags=0x2
[AUDIO];type=CAMERA;norm=0): ok
Composite1: 0 audio camera
ioctl: VIDIOCGCHAN(channel=2;name="S-Video";tuners=0;flags=0x2
[AUDIO];type=CAMERA;norm=0): ok
S-Video: 0 audio camera
ioctl: VIDIOCGCHAN(channel=3;name="Composite3";tuners=0;flags=0x2
[AUDIO];type=CAMERA;norm=0): ok
Composite3: 0 audio camera
audios : 1
ioctl: VIDIOCGAUDIO(audio=0;volume=65535;bass=32768;treble=32768): ok
4 (TV): muted=yes volume=65535 bass=32768 treble=32768
ioctl:
VIDIOCGTUNER(tuner=0;name="Television";rangelow=0;rangehigh=4294967295;flags=0x7
[PAL,NTSC,SECAM];mode=PAL;signal=0): ok
tuner : Television 0-4294967295 PAL NTSC SECAM
v4l: bttv version 0.7.104
ioctl:
VIDIOCGFBUF(base=(nil);height=768;width=1024;depth=16;bytesperline=2048): ok
fbuffer : base=0x(nil) size=1024x768 depth=16 bpl=2048
ioctl:
VIDIOCGPICT(brightness=32768;hue=32768;colour=32512;contrast=27648;whiteness=0;depth=0;palette=unknown):
ok
picture : brightness=32768 hue=32768 colour=32512 contrast=27648
picture : whiteness=0 depth=0 palette=-
ioctl: VIDIOCGMBUF(size=8519680;frames=4;offsets=0): ok
mbuf: size=8519680 frames=4
v4l: using mapped buffers for capture
vid-open: ok: v4l
v4l: 1024x768, 16 bit/pixel, 2048 byte/scanline
WARNING: v4l and dga disagree about the framebuffer base
WARNING: fbuf.base=(nil), dga=0xe8041000
WARNING: Is v4l-conf installed correctly?
WARNING: overlay mode disabled
main: checking wm...
wmhooks: gnome
main: creating windows ...
main: init frequency tables ...
freq: reading /usr/share/xawtv/Index.map
main: read config file ...
freq: newtab 5
freq: reading /usr/share/xawtv/europe-west.list
freq: reading /usr/share/xawtv/ccir-i-iii.list
freq: reading /usr/share/xawtv/ccir-sl-sh.list
freq: reading /usr/share/xawtv/ccir-h.list
freq: reading /usr/share/xawtv/uhf.list
main: checking for vidmode extention ...
main: checking for lirc ...
lirc: ~/.lircrc file found
ev: reg built-in "lirc-key-ch+" => "setstation next"
ev: reg built-in "lirc-key-ch-" => "setstation prev"
ev: reg built-in "lirc-key-vol+" => "volume inc"
ev: reg built-in "lirc-key-vol-" => "volume dec"
ev: reg built-in "lirc-key-mute" => "volume mute"
ev: reg built-in "lirc-key-full_screen" => "fullscreen toggle"
ev: reg built-in "lirc-key-source" => "setinput next"
ev: reg built-in "lirc-key-reserved" => "quit"
ev: reg built-in "lirc-key-0" => "keypad 0"
ev: reg built-in "lirc-key-1" => "keypad 1"
ev: reg built-in "lirc-key-2" => "keypad 2"
ev: reg built-in "lirc-key-3" => "keypad 3"
ev: reg built-in "lirc-key-4" => "keypad 4"
ev: reg built-in "lirc-key-5" => "keypad 5"
ev: reg built-in "lirc-key-6" => "keypad 6"
ev: reg built-in "lirc-key-7" => "keypad 7"
ev: reg built-in "lirc-key-8" => "keypad 8"
ev: reg built-in "lirc-key-9" => "keypad 9"
lirc: init ok
main: checking for joystick ...
main: checking for midi ...
main: adding kbd hooks ...
main: mapping main window ...
xt: pointer show
main: initialize hardware ...
ioctl: VIDIOCGAUDIO(audio=0;volume=65535;bass=32768;treble=32768): ok
ioctl: VIDIOCGCHAN(channel=0;name="Television";tuners=1;flags=0x3
[TUNER,AUDIO];type=TV;norm=0): ok
ioctl:
VIDIOCGPICT(brightness=32768;hue=32768;colour=32512;contrast=27648;whiteness=0;depth=0;palette=unknown):
ok
ioctl:
VIDIOCGPICT(brightness=32768;hue=32768;colour=32512;contrast=27648;whiteness=0;depth=0;palette=unknown):
ok
ioctl:
VIDIOCGPICT(brightness=32768;hue=32768;colour=32512;contrast=27648;whiteness=0;depth=0;palette=unknown):
ok
ioctl:
VIDIOCGPICT(brightness=32768;hue=32768;colour=32512;contrast=27648;whiteness=0;depth=0;palette=unknown):
ok
ioctl: VIDIOCGAUDIO(audio=0;volume=65535;bass=32768;treble=32768): ok
ioctl: VIDIOCSAUDIO(audio=0;volume=65535;bass=32768;treble=32768): ok
ioctl: VIDIOCGAUDIO(audio=0;volume=65535;bass=32768;treble=32768): ok
ioctl: VIDIOCGAUDIO(audio=0;volume=65535;bass=32768;treble=32768): ok
main: parse channels from config file ...
xt: handle_pending: start ...
video: tv(+root): DestroyNotify
video: tv(+root): DestroyNotify
PropertyNotify WM_NAME
PropertyNotify WM_ICON_NAME
PropertyNotify WM_COMMAND
PropertyNotify WM_CLIENT_MACHINE
PropertyNotify WM_NORMAL_HINTS
PropertyNotify WM_HINTS
PropertyNotify WM_CLASS
PropertyNotify WM_LOCALE_NAME
PropertyNotify WM_LOCALE_NAME
PropertyNotify WM_CLIENT_LEADER
video: shell: size 384x288+0+0
gd: init
blit: init
blit: gl: DRI=Yes
blit: gl: texture max size: 256
video: root: ConfigureNotify
PropertyNotify _OL_PIN_STATE
video: root: ConfigureNotify
video: root: ConfigureNotify
video: shell: ReparentNotify
video: tv(+root): ReparentNotify
video: shell: size 384x288+131+89
video: root: ConfigureNotify
video: root: ConfigureNotify
video: root: ConfigureNotify
video: root: MapNotify
video: shell: size 384x288+131+89
PropertyNotify WM_STATE
video: root: MapNotify
video: shell: map
video: tv: visibility 0
PropertyNotify _WIN_WORKSPACE
PropertyNotify _WIN_STATE
PropertyNotify KWM_WIN_DESKTOP
PropertyNotify KWM_WIN_ICONIFIED
PropertyNotify KWM_WIN_STICKY
PropertyNotify KWM_WIN_MAXIMIZED
PropertyNotify WM_STATE
PropertyNotify WM_PROTOCOLS
PropertyNotify WM_NORMAL_HINTS
xt: handle_pending: ... done
cmd: "setfreqtab" "europe-west"
freq: newtab 5
cmd: "capture" "overlay"
ioctl: VIDIOCGFREQ(long=0): ok
main: tuning first station
cmd: "setstation" "0"
ioctl: VIDIOCGAUDIO(audio=0;volume=65535;bass=32768;treble=32768): ok
ioctl: VIDIOCSAUDIO(audio=0;volume=65535;bass=32768;treble=32768): ok
ioctl:
VIDIOCGPICT(brightness=32768;hue=32768;colour=32512;contrast=27648;whiteness=0;depth=0;palette=unknown):
ok
ioctl:
VIDIOCSPICT(brightness=32768;hue=32768;colour=32112;contrast=27648;whiteness=0;depth=0;palette=unknown):
Invalid argument
ioctl:
VIDIOCGPICT(brightness=32768;hue=32768;colour=32512;contrast=27648;whiteness=0;depth=0;palette=unknown):
ok
ioctl:
VIDIOCSPICT(brightness=32767;hue=32768;colour=32512;contrast=27648;whiteness=0;depth=0;palette=unknown):
Invalid argument
ioctl:
VIDIOCGPICT(brightness=32768;hue=32768;colour=32512;contrast=27648;whiteness=0;depth=0;palette=unknown):
ok
ioctl:
VIDIOCSPICT(brightness=32768;hue=32767;colour=32512;contrast=27648;whiteness=0;depth=0;palette=unknown):
Invalid argument
ioctl:
VIDIOCGPICT(brightness=32768;hue=32768;colour=32512;contrast=27648;whiteness=0;depth=0;palette=unknown):
ok
ioctl:
VIDIOCSPICT(brightness=32768;hue=32768;colour=32512;contrast=27524;whiteness=0;depth=0;palette=unknown):
Invalid argument
ioctl: VIDIOCSCHAN(channel=1;name="Composite1";tuners=0;flags=0x2
[AUDIO];type=CAMERA;norm=0): ok
v4l: freq: 0,000
ioctl: VIDIOCSFREQ(long=0): ok
ioctl: VIDIOCGAUDIO(audio=0;volume=65535;bass=32768;treble=32768): ok
ioctl: VIDIOCSAUDIO(audio=0;volume=65535;bass=32768;treble=32768): ok
main: enter main event loop...
PropertyNotify _XAWTV_STATION
PropertyNotify WM_NAME
PropertyNotify WM_ICON_NAME
PropertyNotify _XAWTV_STATION
PropertyNotify WM_NAME
video: shell: size 384x288+131+89
video: configure delayed yes
video: refresh
video: root: MapNotify (ignored)
video: tv: visibility 2 (ignored)
video: root: UnmapNotify (ignored)
video: tv: visibility 0 (ignored)
expose count=0
video: tv(+root): DestroyNotify
xt: pointer hide
ioctl: VIDIOCGAUDIO(audio=0;volume=65535;bass=32768;treble=32768): ok
ioctl: VIDIOCSAUDIO(audio=0;volume=65535;bass=32768;treble=32768): ok
cmd: "capture" "off"
v4l: close
Thats it, and kernel version 2.4.20 did work fine.
A question can it have something to do with the xawtv versions?
I am using xawtv-3.81.
Cheers Johnny