From owner-freebsd-multimedia@FreeBSD.ORG Sun Nov 11 02:10:12 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B54ECBBD for ; Sun, 11 Nov 2012 02:10:12 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id 91BA18FC08 for ; Sun, 11 Nov 2012 02:10:12 +0000 (UTC) Received: from segfault-nmh-helo.tristatelogic.com (localhost [127.0.0.1]) by segfault.tristatelogic.com (Postfix) with ESMTP id EBF2F5081B; Sat, 10 Nov 2012 18:10:04 -0800 (PST) To: Matthias Apitz Subject: Re: FreeBSD && HDMI TV In-Reply-To: <20121110122600.GA3426@tinyCurrent> Date: Sat, 10 Nov 2012 18:10:04 -0800 Message-ID: <10861.1352599804@tristatelogic.com> From: "Ronald F. Guilmette" Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Nov 2012 02:10:12 -0000 In message <20121110122600.GA3426@tinyCurrent>, Matthias Apitz wrote: >I have installed xrandr 1.3.x but do not see how to use this with the >external VGA TV; my laptop uses 1024x600 and the TV has 1920x1080 >resolution; when I connect the TV before starting X11/KDE both screens >show the same picture with 800x600 resolution; can you please give an >example how to use 1920x1080 on the TV? Thanks Did you try this? xrandr --size 1920x1080 If so, what happened when you did? Also, if you just run xrandr with no options, then what prints out? (Hint: The output should show you all available resolutions for each screen you have attached.) From owner-freebsd-multimedia@FreeBSD.ORG Sun Nov 11 10:27:29 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AF73B13C for ; Sun, 11 Nov 2012 10:27:29 +0000 (UTC) (envelope-from lars@e-new.0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.76.211]) by mx1.freebsd.org (Postfix) with ESMTP id 62BBE8FC08 for ; Sun, 11 Nov 2012 10:27:29 +0000 (UTC) Received: from e-new.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.0x20.net (Postfix) with ESMTPS id 8D79A6A6005; Sun, 11 Nov 2012 11:27:27 +0100 (CET) Received: from e-new.0x20.net (localhost [127.0.0.1]) by e-new.0x20.net (8.14.5/8.14.5) with ESMTP id qABARR2m035651; Sun, 11 Nov 2012 11:27:27 +0100 (CET) (envelope-from lars@e-new.0x20.net) Received: (from lars@localhost) by e-new.0x20.net (8.14.5/8.14.5/Submit) id qABARPG2034740; Sun, 11 Nov 2012 11:27:25 +0100 (CET) (envelope-from lars) Date: Sun, 11 Nov 2012 11:27:25 +0100 From: Lars Engels To: "Ronald F. Guilmette" Subject: Re: FreeBSD && HDMI TV Message-ID: <20121111102725.GZ31744@e-new.0x20.net> References: <20121110122600.GA3426@tinyCurrent> <10861.1352599804@tristatelogic.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3GAcXxm1yfNVloKv" Content-Disposition: inline In-Reply-To: <10861.1352599804@tristatelogic.com> X-Editor: VIM - Vi IMproved 7.3 X-Operation-System: FreeBSD 8.3-RELEASE-p4 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Nov 2012 10:27:29 -0000 --3GAcXxm1yfNVloKv Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Nov 10, 2012 at 06:10:04PM -0800, Ronald F. Guilmette wrote: >=20 > In message <20121110122600.GA3426@tinyCurrent>,=20 > Matthias Apitz wrote: >=20 > >I have installed xrandr 1.3.x but do not see how to use this with the > >external VGA TV; my laptop uses 1024x600 and the TV has 1920x1080 > >resolution; when I connect the TV before starting X11/KDE both screens > >show the same picture with 800x600 resolution; can you please give an > >example how to use 1920x1080 on the TV? Thanks >=20 > Did you try this? >=20 > xrandr --size 1920x1080 >=20 > If so, what happened when you did? >=20 > Also, if you just run xrandr with no options, then what prints out? >=20 > (Hint: The output should show you all available resolutions for each > screen you have attached.) Try x11/lxrandr, that's a simple GTK GUI for xrandr --3GAcXxm1yfNVloKv Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlCffY0ACgkQKc512sD3afiZNgCferg0/lDb4vPd4xU0lX2989SZ YHIAnAmaNxx4HZwb4A0R+JS2yVZU7Eqa =tXyg -----END PGP SIGNATURE----- --3GAcXxm1yfNVloKv-- From owner-freebsd-multimedia@FreeBSD.ORG Sun Nov 11 10:34:15 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DC0FE2EA for ; Sun, 11 Nov 2012 10:34:15 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 67A318FC0A for ; Sun, 11 Nov 2012 10:34:15 +0000 (UTC) Received: from [93.104.16.232] (helo=localhost.my.domain) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1TXUrj-0006qt-1H; Sun, 11 Nov 2012 11:34:11 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.4/8.14.3) with ESMTP id qABAY8DX002242; Sun, 11 Nov 2012 11:34:09 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.4/8.14.3/Submit) id qABAY72V002241; Sun, 11 Nov 2012 11:34:07 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sun, 11 Nov 2012 11:34:06 +0100 From: Matthias Apitz To: "Ronald F. Guilmette" Subject: Re: FreeBSD && HDMI TV Message-ID: <20121111103406.GA2192@tinyCurrent> References: <20121110122600.GA3426@tinyCurrent> <10861.1352599804@tristatelogic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <10861.1352599804@tristatelogic.com> X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 93.104.16.232 Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Apitz List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Nov 2012 10:34:16 -0000 El día Saturday, November 10, 2012 a las 06:10:04PM -0800, Ronald F. Guilmette escribió: > > In message <20121110122600.GA3426@tinyCurrent>, > Matthias Apitz wrote: > > >I have installed xrandr 1.3.x but do not see how to use this with the > >external VGA TV; my laptop uses 1024x600 and the TV has 1920x1080 > >resolution; when I connect the TV before starting X11/KDE both screens > >show the same picture with 800x600 resolution; can you please give an > >example how to use 1920x1080 on the TV? Thanks > > Did you try this? > > xrandr --size 1920x1080 > > If so, what happened when you did? > > Also, if you just run xrandr with no options, then what prints out? After a lot of tests I figured out that I have to add a line Virtual 2048 2048 into the xorg.conf, SubSection "Display", to get the hight resolution of the VGA of the TV; xrandr -q says now: $ xrandr -q Screen 0: minimum 320 x 200, current 1024 x 600, maximum 2048 x 2048 VGA connected (normal left inverted right x axis y axis) 1920x1080 60.0 + 1280x1024 60.0 1360x768 60.0 1152x864 60.0 1024x768 60.0 800x600 60.3 640x480 59.9 720x400 70.1 LVDS connected 1024x600+0+0 (normal left inverted right x axis y axis) 222mm x 125mm 1024x600 60.0*+ 800x600 85.1 72.2 75.0 60.3 56.2 640x480 85.0 72.8 75.0 59.9 720x400 85.0 640x400 85.1 640x350 85.1 and I can switch-on the VGA with something like $ xrandr --output VGA --mode 1920x1080 but, this a) shows on VGA the same content as the screen LVDS (i.e. the laptop display) and b) affects as well the resolution of the LVDS; what I want is some so called Xinerama of the two screens: the laptop stays as it is and the VGA is somehow at its side, both are part of a bigger virtual ascreen and one can move the mouse and X11 clients from one screen to the other, as shown in this page: http://www.thinkwiki.org/wiki/File:Intel-DualHead.png Will continue working on this; matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: www.asciiribbon.org E-mail: guru@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards From owner-freebsd-multimedia@FreeBSD.ORG Sun Nov 11 18:31:01 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9DD5C345 for ; Sun, 11 Nov 2012 18:31:01 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 245B18FC17 for ; Sun, 11 Nov 2012 18:31:00 +0000 (UTC) Received: from [93.104.16.232] (helo=localhost.my.domain) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1TXcJ4-0005sV-97; Sun, 11 Nov 2012 19:30:54 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.4/8.14.3) with ESMTP id qABIUqEb004778; Sun, 11 Nov 2012 19:30:52 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.4/8.14.3/Submit) id qABIUqBM004777; Sun, 11 Nov 2012 19:30:52 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sun, 11 Nov 2012 19:30:51 +0100 From: Matthias Apitz To: Lars Engels Subject: Re: FreeBSD && HDMI TV Message-ID: <20121111183051.GA4744@tinyCurrent> References: <20121110122600.GA3426@tinyCurrent> <10861.1352599804@tristatelogic.com> <20121111102725.GZ31744@e-new.0x20.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20121111102725.GZ31744@e-new.0x20.net> X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 93.104.16.232 Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Apitz List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Nov 2012 18:31:01 -0000 El día Sunday, November 11, 2012 a las 11:27:25AM +0100, Lars Engels escribió: > > >I have installed xrandr 1.3.x but do not see how to use this with the > > >external VGA TV; my laptop uses 1024x600 and the TV has 1920x1080 > > >resolution; when I connect the TV before starting X11/KDE both screens > > >show the same picture with 800x600 resolution; can you please give an > > >example how to use 1920x1080 on the TV? Thanks > > > > Try x11/lxrandr, that's a simple GTK GUI for xrandr Thanks for the hint; I think I'm now through; with the line in xorg.conf about Virtual 2944 2944 (2944 is the sum of 1024+1920) and this command: $ xrandr --output LVDS --mode 1024x600 --rate 60.0 --primary --output VGA --mode 1920x1080 --rate 60.0 --right-of LVDS I get theese two screens: +------------------+-------------------------------+ | | | | LVDS | | | 1024x600 | | | | | +------------------+ VGA | | 1920x1080 | | | | | +-------------------------------+ the KDE pannel and icons are in the LVDS and I can drag and drop any X11 application between LVDS and VGA; to stop the VGA output I just use $ xrandr --output VGA --off Thanks matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: www.asciiribbon.org E-mail: guru@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards From owner-freebsd-multimedia@FreeBSD.ORG Mon Nov 12 11:06:47 2012 Return-Path: Delivered-To: freebsd-multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6239BA25 for ; Mon, 12 Nov 2012 11:06:47 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 3B3F38FC22 for ; Mon, 12 Nov 2012 11:06:47 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qACB6lOL000416 for ; Mon, 12 Nov 2012 11:06:47 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qACB6k57000414 for freebsd-multimedia@FreeBSD.org; Mon, 12 Nov 2012 11:06:46 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 12 Nov 2012 11:06:46 GMT Message-Id: <201211121106.qACB6k57000414@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-multimedia@FreeBSD.org Subject: Current problem reports assigned to freebsd-multimedia@FreeBSD.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2012 11:06:47 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/172185 multimedia multimedia/vlc build fail with gmake core dump at modu o ports/172128 multimedia building multimedia/vlc fails o ports/171958 multimedia audio/fluidsynth: Update to version 1.1.6 o ports/171888 multimedia [PATCH] multimedia/gpac-libgpac: update to 0.5.0,1 o ports/171248 multimedia multimedia/win32-codecs: Fix pkg-plist o kern/171191 multimedia [snd_cmi] [request] add driver support for cmi8787/878 o ports/170517 multimedia [patch] Correct audio/jack Dependency Declaration o ports/170134 multimedia audio/denemo: Update to version 0.9.4 o ports/169563 multimedia [patch] audio/jack-rack o ports/165090 multimedia audio/faad missing head files o kern/162181 multimedia [snd_emu10k1] [patch] The kernel sound driver module s o ports/161783 multimedia [PATCH] multimedia/gpac-libgpac: Fix build with gcc46 o ports/161568 multimedia [PATCH] audio/libsamplerate: samplerate.h has comma at o ports/161546 multimedia [PATCH] multimedia/mkvtoolnix: make some dependencies o kern/159236 multimedia [pcm] [patch] set PCM_CAP_DEFAULT for the default snd o kern/158979 multimedia [snd_uadio] snd_uaudio fails to initialize built-in mi o kern/158542 multimedia [snd_hda] hdac0: hdac_get_capabilities: Invalid corb s f kern/158424 multimedia [snd_hda] snd_hda driver doesn't expose 'rec' flag for o stand/157050 multimedia OSS implementation lacks AFMT_FLOAT o kern/156198 multimedia [snd_hda] [hang] loading snd_hda kernel module hangs s o kern/156165 multimedia [hdac] Missing card definition for hdac audio device, o ports/153846 multimedia graphics/libcaca 0.99.beta17 - Hidden dependency on Xl a ports/153735 multimedia multimedia/vlc: install error: `Permission denied' for o kern/152622 multimedia [pcm] uaudio recording problem o kern/152500 multimedia [hdac] play interrupt timeout, channel dead o kern/152378 multimedia [sound][patch] Update snd_envy24ht to be MPSAFE and us f ports/150502 multimedia multimedia/gpac-libgpac 0.4.5_4,1 fails to compile on o kern/150284 multimedia [snd_hda] No gain with Audio o kern/149943 multimedia [pcm]: CS4236 audio problem o kern/148741 multimedia [sound] Headphones are deaf (do not work) on Lenovo Th o kern/147504 multimedia [oss] [panic] panic: dev_pager_getpage: map function r o kern/146031 multimedia [snd_hda] race condition when kldunload snd_hda sound o kern/144659 multimedia [pcm] The distortion of the sound playback of music at o kern/143505 multimedia [pcm] FreeBSD 8.0-RELEASE (x64) won't make sound card o kern/141826 multimedia [snd_hda] load of snd_hda module fails o kern/140591 multimedia [PATCH][sound] No sound output on lineout/headphone ja o kern/137589 multimedia [snd_uaudio] snd_uaudio.ko (USB audio driver) doesn't o kern/134767 multimedia [sound] [snd_hda] [regression] Sigmatel STAC9205X no s o kern/132848 multimedia [sound] [snd_emu10kx] driver problem with card init, s o kern/132511 multimedia [sound] [snd_hda] Probing ALC888 codec on ASRock K10N7 o kern/129604 multimedia [sound] Sound stops with error: pcm0:virtual:dsp0.vp0: o kern/127131 multimedia [bktr] /usr/src/sys/dev/bktr/bktr_os.c, line 469: wron s kern/125756 multimedia [sound] [patch] cannot detect soft-modem on HDA bus o kern/124319 multimedia [sound] [snd_emu10k1] [regression] Cannot record from o kern/122086 multimedia [sound] maestro sound driver is working, but mixer ini p kern/121156 multimedia [sound] [patch] Turn on inverted external amplifier se o kern/120857 multimedia [sound] [snd_emu10k1] snd_emu10k1 driver issues a warn o kern/120780 multimedia [sound] [snd_hda] snd_hda doesn't work on Dell Latitut o kern/119973 multimedia [sound] [snd_maestro] [regression] snd_maestro only wo o kern/119931 multimedia [sound] No sound card detected on ASUS "K8V-X SE R2.00 o kern/119759 multimedia [sound] [snd_emu10k1] [regression] Can not record anyt o kern/115300 multimedia [sound] [snd_hda] [regression] snd_hda(4) fails to att o kern/114760 multimedia [sound] [snd_cmi] snd_cmi driver causing sporadic syst o kern/111767 multimedia [sound] ATI SB450 High Definition Audio Controller sou o kern/107516 multimedia [sound] [snd_emu10k1] - skips, clicks and lag after a o kern/107051 multimedia [sound] only 2 channels output works for the ALC850 (o o kern/104874 multimedia [sound] [snd_emu10k1] kldload snd_emu10k1 hangs system o kern/101417 multimedia [sound] 4-speakers output not possible on Asus A8V-Del o kern/100859 multimedia [sound] [snd_ich] snd_ich broken on GIGABYTE 915 syste o kern/98752 multimedia [sound] Intel ich6 82801 FB - on Packard Bell A8810 la o kern/98504 multimedia [sound] Sound is distorted with SB Live 5.1 o kern/98496 multimedia [sound] [snd_ich] some functions don't work in my soun o kern/97609 multimedia [sound] Load Sound Module - VIA8233 - fails o kern/97535 multimedia [sound] [snd_mss] doesn't work in 6.0-RELEASE and abov o kern/96538 multimedia [sound] emu10k1-driver inverts channels o kern/95086 multimedia [sound] uaudio line in problem with sbdm lx o kern/94279 multimedia [sound] [snd_neomagic] snd_neomagic crashes on FreeBSD o kern/93986 multimedia [sound] Acer TravelMate 4652LMi pcm0 channel dead o kern/92512 multimedia [sound] distorted mono output with emu10k1 o kern/87782 multimedia [sound] snd_t4dwave and pcm0:record:0: record interrup o kern/82043 multimedia [sound] snd_emu10k1 - mixer does not work. o kern/81146 multimedia [sound] Sound isn't working AT ALL for Sis7012 onboard o kern/80632 multimedia [sound] pcm driver missing support for CMI8738 auxilla o kern/79912 multimedia [sound] sound broken for 2 VIA chipsets: interrupt sto o kern/79905 multimedia [sound] sis7018 sound module problem o kern/79678 multimedia [sound] sound works except recording from any source o conf/75137 multimedia [sound] add snd_* modules support to /etc/rc.d/mixer f kern/72995 multimedia [sound] Intel ICH2 (82801BA) - sound nearly inaudible o kern/63204 multimedia [sound] /dev/mixer broken with ESS Maestro-2E (still o o kern/60677 multimedia [sound] [patch] No reaction of volume controy key on I s kern/60599 multimedia [bktr] [partial patch] No sound for ATI TV Wonder (ste o kern/37600 multimedia [sound] [partial patch] t4dwave drive doesn't record. o kern/23546 multimedia [sound] [snd_csa] [patch] csa DMA-interrupt problem 83 problems total. From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 13 04:37:07 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 64A279CD for ; Tue, 13 Nov 2012 04:37:07 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from tower.berklix.org (tower.berklix.org [83.236.223.114]) by mx1.freebsd.org (Postfix) with ESMTP id E9B798FC0C for ; Tue, 13 Nov 2012 04:37:06 +0000 (UTC) Received: from mart.js.berklix.net (pD9FBED7C.dip.t-dialin.net [217.251.237.124]) (authenticated bits=0) by tower.berklix.org (8.14.2/8.14.2) with ESMTP id qAD4b4Kx002164; Tue, 13 Nov 2012 04:37:05 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id qAD4akrV031399; Tue, 13 Nov 2012 05:36:51 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.4/8.14.4) with ESMTP id qAD4aXYM093301; Tue, 13 Nov 2012 05:36:39 +0100 (CET) (envelope-from jhs@fire.js.berklix.net) Message-Id: <201211130436.qAD4aXYM093301@fire.js.berklix.net> To: Matthias Apitz Subject: Re: FreeBSD && HDMI TV From: "Julian H. Stacey" Organization: http://berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Sat, 10 Nov 2012 13:26:00 +0100." <20121110122600.GA3426@tinyCurrent> Date: Tue, 13 Nov 2012 05:36:33 +0100 Sender: jhs@berklix.com Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2012 04:37:07 -0000 Hi, Reference: > From: Matthias Apitz > Reply-to: Matthias Apitz > Date: Sat, 10 Nov 2012 13:26:00 +0100 > Message-id: <20121110122600.GA3426@tinyCurrent> Matthias Apitz wrote: > El día Tuesday, November 06, 2012 a las 02:54:20PM +0100, Julian H. Stacey escribió: > > > I connect with SVGA, > > TV has HDMI, SVGA, S-VHS, Laptop has SVGA, SVHS, Neither have DVI, > > I recall S-VHS gave low res, & only monochrome=B/W. > > > > After you solve your connection, To share displays: > > cd /usr/ports/x11/xrandr; make install ; man xrandr > > You will notice one can move & share xterms etc between screeen, > > but [some] video players seem sticky & wont move so easily (video > > frame buffers I recall?, I havent had time to look into it much) > > > > Cheers, > > Julian > > Hi Julian, > > I have installed xrandr 1.3.x but do not see how to use this with the > external VGA TV; my laptop uses 1024x600 and the TV has 1920x1080 > resolution; when I connect the TV before starting X11/KDE both screens > show the same picture with 800x600 resolution; can you please give an > example how to use 1920x1080 on the TV? Thanks > > matthias Hi Matthias, sorry I've been swamped in mail (a broken procmail + a spam flood) so late reply, aniothe day gone & its gone 5 AM, so please excuse as I've not used xrandr in a few months & had more work to do so heres my notes file (which wasn't written to be published but well, if anything useful, glean (grab) what you can ... -------- To play a film from host=lapo Novatech to new 40" TV Login av av xhost + cd /av/video/2rip setenv DISPLAY :0 xrandr Screen 0: minimum 320 x 200, current 1024 x 768, maximum 1024 x 1024 VGA-0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1024x768 60.0* 800x600 60.3 640x480 59.9 LVDS connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm 1024x768 60.0*+ 60.0 800x600 60.3 59.9 640x480 59.9 59.4 S-video disconnected (normal left inverted right x axis y axis) xrandr --output VGA-0 --primary # doesnt divert a running mplayer # but might divert a new started # one, not tried yet xrandr --output LVDS --off # to force mplayer output on TV xrandr --output VGA-0 --left-of LVDS # Yet to try gmplayer -noborder film-0:23:51-720.avi Yet to Do somehow remove window border on gmplayer # -noborder does not work reduce fvwm panel --------------- http://wiki.debian.org/XStrikeForce/HowToRandR12 xrandr --auto # Reset: xrandr --addmode S-video 800x600 # Initialise for S-VHS output to TV. xrandr --output S-video --mode 800x600 # Initialise for S-VHS output to TV. xrandr --output LVDS --off # Turn off laptop internal. xrandr --output S-video --left-of LVDS # Dual headed. Then restart fvwm. I need to rethink FVWM placement as currently, Left placement results in: Xterm etc auto placements start on left = TV Lower right fvwm panel manager does not clutter TV. Lower left FVWM Bomb clock & frame lock not visible. xrandr --output LVDS --primary # Not tried. Option "RROutputOrder" "DVI-I_1/digital VGA_1" http://en.wikipedia.org/wiki/S-video Another incompatibility due to S-Video's not being part of the original SCART standard is when connecting a SCART output device such as a cable TV box to a TV with a mini-DIN S-Video input. In many cases, if this connection is made, the result will be a predominantly black-and-white picture, with most of the color (chrominance signal) washed out. An example of this is when connecting a SCART output of a FOXTEL Digital Box (Australia) to a mini-DIN S-Video input of a TV. An impedance mismatch between the SCART and mini-DIN interfaces causes the signal levels to be reduced to the TV, resulting in the poor picture. This problem can be overcome by terminating the chrominance line of the SCART plug with a 75-ohm resistor, correcting the mismatch. Many high-end sets do support this connection, however (without the termination), due to their inputs' having a larger dynamic range. My Novatech -8355 laptop drives my TV LCD Thomson 15LCDM03B from the mini DIN on laptop, to mini DIN on TV, in colour, (AV2 on TV controller). to scart on TV in monochrome (?AV-what? ) on TV controller) I have not yet investigated voltages & impedances to consider if a 75 ohm will help. http://en.wikipedia.org/wiki/Scart -------- Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com Reply below not above, like a play script. Indent old text with "> ". Send plain text. Not: HTML, multipart/alternative, base64, quoted-printable. From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 13 07:08:20 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E09958FA for ; Tue, 13 Nov 2012 07:08:20 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.c2i.net [212.247.154.98]) by mx1.freebsd.org (Postfix) with ESMTP id 690FE8FC0C for ; Tue, 13 Nov 2012 07:08:19 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 342720716; Tue, 13 Nov 2012 08:08:12 +0100 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org Subject: Re: [SoX-devel] Bug in sox-14.3.2/src/oss.c Date: Tue, 13 Nov 2012 08:09:55 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <201210281324.36923.hselasky@c2i.net> <20121031090350.GA8165@dcvr.yhbt.net> <201210311037.46581.hselasky@c2i.net> In-Reply-To: <201210311037.46581.hselasky@c2i.net> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201211130809.55220.hselasky@c2i.net> Cc: Eric Wong , sox-devel@lists.sourceforge.net X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2012 07:08:20 -0000 On Wednesday 31 October 2012 10:37:46 Hans Petter Selasky wrote: > On Wednesday 31 October 2012 10:03:50 Eric Wong wrote: > > Hans Petter Selasky wrote: > > > Hi, > > > > > > Line buffering should be off, but this statement leads to SOX reading 1 > > > and > > > > > > one byte from the recording DSP device under FreeBSD: > > > /* Change to non-buffered I/O */ > > > setvbuf(ft->fp, NULL, _IONBF, sizeof(char) * file->size); > > > return(SOX_SUCCESS); > > > > > > I think this flag should be used instead: > > > _IOFBF fully buffered > > > > > > I've tested this change and it works like expected. > > > > > > Any comments? > > > > The code you're changing in src/oss.c no long applies to SoX 14.4.0, > > how does 14.4.0 work out-of-the-box for you? > > Hi, > > First observation: > > oss.c: In function 'ossinit': > oss.c:116: warning: dereferencing 'void *' pointer > oss.c:116: error: request for member '_file' in something not a structure > or union > oss.c:124: warning: dereferencing 'void *' pointer > oss.c:124: error: request for member '_file' in something not a structure > or union > oss.c:163: warning: dereferencing 'void *' pointer > oss.c:163: error: request for member '_file' in something not a structure > or union > oss.c:176: warning: dereferencing 'void *' pointer > oss.c:176: error: request for member '_file' in something not a structure > or union > oss.c:186: warning: dereferencing 'void *' pointer > oss.c:186: error: request for member '_file' in something not a structure > or union > oss.c:205: warning: dereferencing 'void *' pointer > oss.c:205: error: request for member '_file' in something not a structure > or union > oss.c:214: warning: dereferencing 'void *' pointer > oss.c:214: error: request for member '_file' in something not a structure > or union > > Fixed by renaming fileno( into sox_fileno( and defining this: > > #define sox_fileno(x) fileno((FILE *)(x)) > > Second observation: > > Default audio driver is not OSS. > > env AUDIODEVICE=/dev/dsp AUDIODRIVER=oss rec test.wav > > Third observation: > > GIO syscalls are still used, and the length is 1 byte. > > 15260 sox RET read 1 > 15260 sox CALL read(0x3,0x807b2de37,0x1) > 15260 sox GIO fd 3 read 1 byte > 0x0000 ff > > Patch needed: > > /* Change to non-buffered I/O */ > setvbuf(ft->fp, NULL, _IONBF, sizeof(char) * file->size); > return(SOX_SUCCESS); > } > > Change to: > > /* Change to non-buffered I/O */ > setvbuf(ft->fp, NULL, _IOFBF, sizeof(char) * file->size); > return(SOX_SUCCESS); > } > Hi, Will someone handle this or do I have to file a bug-report? --HPS From owner-freebsd-multimedia@FreeBSD.ORG Tue Nov 13 18:11:03 2012 Return-Path: Delivered-To: multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8FA593D5 for ; Tue, 13 Nov 2012 18:11:03 +0000 (UTC) (envelope-from gabor@zahemszky.hu) Received: from default-smtp.integrity.hu (default-smtp.integrity.hu [212.52.165.203]) by mx1.freebsd.org (Postfix) with ESMTP id 44F438FC12 for ; Tue, 13 Nov 2012 18:11:02 +0000 (UTC) Received: by smtp.integrity.hu (Postfix, from userid 10000) id 2487613462E9; Tue, 13 Nov 2012 19:05:36 +0100 (CET) Received: from webmail2.integrity.hu (mailadmin.integrity.hu [10.1.65.15]) (Authenticated sender: gabor@zahemszky.hu) by smtp.integrity.hu (Postfix) with ESMTPA id 199E213462E4 for ; Tue, 13 Nov 2012 19:05:35 +0100 (CET) Received: from Avp7gECUP2SmETRsnaKxF5slU9UHhm8TygvuxfPFcwGFiU7EAdNm4A== (HfwFpooMnzA6WtK1qQHvUXPN9KaN9DOH) by webmail2.integrity.hu with HTTP (HTTP/1.1 POST); Tue, 13 Nov 2012 19:05:35 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 13 Nov 2012 19:05:35 +0100 From: gabor@zahemszky.hu To: Subject: avidemux port Message-ID: X-Sender: gabor@zahemszky.hu User-Agent: Roundcube Webmail/0.5.1 X-Virus-Scanned: clamav-milter 0.97.5 at mail-autosubmit X-Virus-Status: Clean X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2012 18:11:03 -0000 Hi! I've just found, that in the multimedia/avidemux2/Makefile.common file, there are these lines: # We haven't ALSA(Never) & Aften(Yet) on FreeBSD CMAKE_ARGS+= -DARTS:BOOL=OFF -DALSA:BOOL=OFF -DAFTEN:BOOL=OFF Well, as I've "ported" it to FreeBSD (it's in audio/aften), I think, it should be corrected, and maybe make it to an option. (With aften, somebody can make A-52 (or as they call it: AC-3 or DolbyDigital) encoded files from WAV-files.) Bye, ZAHEMSZKY, Gabor < Gabor at Zahemszky dot HU > PS: By the way, there are audio/alsa-{lib,utils,plugins} too From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 15 04:52:46 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0417BD40 for ; Thu, 15 Nov 2012 04:52:46 +0000 (UTC) (envelope-from normalperson@yhbt.net) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by mx1.freebsd.org (Postfix) with ESMTP id E04398FC0C for ; Thu, 15 Nov 2012 04:52:45 +0000 (UTC) Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id B58AE1F712; Thu, 15 Nov 2012 04:46:48 +0000 (UTC) Date: Thu, 15 Nov 2012 04:46:48 +0000 From: Eric Wong To: Hans Petter Selasky Subject: Re: [SoX-devel] Bug in sox-14.3.2/src/oss.c Message-ID: <20121115044648.GA25466@dcvr.yhbt.net> References: <201210281324.36923.hselasky@c2i.net> <20121031090350.GA8165@dcvr.yhbt.net> <201210311037.46581.hselasky@c2i.net> <201211130809.55220.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201211130809.55220.hselasky@c2i.net> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-multimedia@freebsd.org, sox-devel@lists.sourceforge.net X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2012 04:52:46 -0000 Hans Petter Selasky wrote: > Will someone handle this or do I have to file a bug-report? Probably best to file a bug report so it doesn't get forgotten. The SoX developer(s) responsible for this are probably too busy at the moment. From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 15 17:33:59 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4626BBE7 for ; Thu, 15 Nov 2012 17:33:59 +0000 (UTC) (envelope-from jbeich@tormail.org) Received: from outgoing.tormail.org (outgoing.tormail.org [82.221.96.22]) by mx1.freebsd.org (Postfix) with ESMTP id D86DC8FC0C for ; Thu, 15 Nov 2012 17:33:58 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=internal.tormail.org) by outgoing.tormail.org with esmtp (Exim 4.72) (envelope-from ) id 1TZ2WP-0001Mo-E0 for freebsd-multimedia@freebsd.org; Thu, 15 Nov 2012 19:42:34 +0300 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tormail.org; s=tm; h=Message-Id:X-TorMail-User:Content-Type:MIME-Version:Date:Subject:To:From; bh=JLadLsouGKdZUAvMF8d5poCmMWENJHuSouApBG1jPVc=; b=eXYI+XV66q9eJpOPjMrNoSwDKUsBPn19/k0OtNRMC6YV4stt7/g287RY9oqfqcRKm9J+ZCVZkMR1ee9+zhncm7f8pnzyqPG0UrOU6x0qIZJI4Wi42x/05ptG4hzhgggOxP6fpmTCT/Sbgf93zHtyOca0h1ATe8WgQF2fU2K1jAY=; Received: from jbeich by internal.tormail.org with local (Exim 4.63) (envelope-from ) id 1TZ2UN-0007lV-2Q for freebsd-multimedia@freebsd.org; Thu, 15 Nov 2012 16:40:28 +0000 From: Jan Beich To: freebsd-multimedia@freebsd.org Subject: linux joystick Date: Thu, 15 Nov 2012 12:37:37 -0400 MIME-Version: 1.0 Content-Type: text/plain X-TorMail-User: jbeich Message-Id: <1TZ2UN-0007lV-2Q@internal.tormail.org> X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2012 17:33:59 -0000 Many linux games and wine provide support only for linux joystick. emulators/joytran helps but some games do not even support more than one keyboard player e.g., Shank. As devel/linux-js is nowadays broken I've tried to comile webcamd with CONFIG_INPUT_JOYDEV but it still fails to attach to my usb gamepad. OTOH, webcamd has no trouble attaching to my wacom tablet. Any clue what may be missing? -- # ubuntu (laptop) [ 33.907951] usb 2-1.5: new low-speed USB device number 3 using ehci_hcd [ 34.097118] input: Mega World Thrustmaster dual analog 3.2 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5:1.0/input/input15 [ 34.097409] generic-usb 0003:044F:B315.0001: input,hidraw0: USB HID v1.10 Gamepad [Mega World Thrustmaster dual analog 3.2] on usb-0000:00:1d.0-1.5/input0 [ 34.097427] usbcore: registered new interface driver usbhid [ 34.097430] usbhid: USB HID core driver # freebsd (foobox) $ usbconfig -d 3.3 dump_curr_config_desc ugen3.3: at usbus3, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0022 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x00a0 bMaxPower = 0x00af Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0003 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 Additional Descriptor bLength = 0x09 bDescriptorType = 0x21 bDescriptorSubType = 0x10 RAW dump: 0x00 | 0x09, 0x21, 0x10, 0x01, 0x00, 0x01, 0x22, 0x6c, 0x08 | 0x00 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 bmAttributes = 0x0003 wMaxPacketSize = 0x0008 bInterval = 0x000a bRefresh = 0x0000 bSynchAddress = 0x0000 $ webcamd -d 3.3 webcamd: Cannot find USB device From owner-freebsd-multimedia@FreeBSD.ORG Thu Nov 15 20:17:52 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3FB226B3 for ; Thu, 15 Nov 2012 20:17:52 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id AAFFC8FC08 for ; Thu, 15 Nov 2012 20:17:51 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 344155867; Thu, 15 Nov 2012 21:17:49 +0100 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org Subject: Re: linux joystick Date: Thu, 15 Nov 2012 21:19:29 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <1TZ2UN-0007lV-2Q@internal.tormail.org> In-Reply-To: <1TZ2UN-0007lV-2Q@internal.tormail.org> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201211152119.29494.hselasky@c2i.net> Cc: Jan Beich X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Nov 2012 20:17:52 -0000 On Thursday 15 November 2012 17:37:37 Jan Beich wrote: > Many linux games and wine provide support only for linux joystick. > emulators/joytran helps but some games do not even support more than one > keyboard player e.g., Shank. > > As devel/linux-js is nowadays broken I've tried to comile webcamd with > CONFIG_INPUT_JOYDEV but it still fails to attach to my usb gamepad. > OTOH, webcamd has no trouble attaching to my wacom tablet. Any clue > what may be missing? > > -- > # ubuntu (laptop) > [ 33.907951] usb 2-1.5: new low-speed USB device number 3 using ehci_hcd > [ 34.097118] input: Mega World Thrustmaster dual analog 3.2 as > /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5:1.0/input/input15 [ > 34.097409] generic-usb 0003:044F:B315.0001: input,hidraw0: USB HID v1.10 > Gamepad [Mega World Thrustmaster dual analog 3.2] on > usb-0000:00:1d.0-1.5/input0 [ 34.097427] usbcore: registered new > interface driver usbhid > [ 34.097430] usbhid: USB HID core driver > > # freebsd (foobox) > $ usbconfig -d 3.3 dump_curr_config_desc > ugen3.3: at usbus3, cfg=0 md=HOST > spd=LOW (1.5Mbps) pwr=ON > > > Configuration index 0 > > bLength = 0x0009 > bDescriptorType = 0x0002 > wTotalLength = 0x0022 > bNumInterfaces = 0x0001 > bConfigurationValue = 0x0001 > iConfiguration = 0x0000 > bmAttributes = 0x00a0 > bMaxPower = 0x00af > > Interface 0 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0000 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0001 > bInterfaceClass = 0x0003 > bInterfaceSubClass = 0x0000 > bInterfaceProtocol = 0x0000 > iInterface = 0x0000 > > Additional Descriptor > > bLength = 0x09 > bDescriptorType = 0x21 > bDescriptorSubType = 0x10 > RAW dump: > 0x00 | 0x09, 0x21, 0x10, 0x01, 0x00, 0x01, 0x22, 0x6c, > 0x08 | 0x00 > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0081 > bmAttributes = 0x0003 > wMaxPacketSize = 0x0008 > bInterval = 0x000a > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > $ webcamd -d 3.3 > webcamd: Cannot find USB device Hi, How did you configure this? Did you install work/webcamd*/tools/linux_make ? And did you run "make -C work/webcamd* configure", after make extract patch? --HPS From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 16 06:52:28 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D6871881 for ; Fri, 16 Nov 2012 06:52:28 +0000 (UTC) (envelope-from jbeich@tormail.org) Received: from outgoing.tormail.org (outgoing.tormail.org [82.221.96.22]) by mx1.freebsd.org (Postfix) with ESMTP id 460D88FC08 for ; Fri, 16 Nov 2012 06:52:27 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=internal.tormail.org) by outgoing.tormail.org with esmtp (Exim 4.72) (envelope-from ) id 1TZFms-0003zb-95; Fri, 16 Nov 2012 09:52:26 +0300 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tormail.org; s=tm; h=Message-Id:X-TorMail-User:Content-Type:MIME-Version:References:Date:In-Reply-To:Subject:Cc:To:From; bh=/lnNzWmWjKBFwT7gYO2Q6eK2q3fVnxfZBLEJF+StX0w=; b=oAN3/IypPIpnFEcZqNkYDBuTrc67CY9oN7k/tBQIS/llag3YVOr2dJqIwpn3R3qFGVEmJol1jtutakMCDlW+S2cNiTIxrAW1ATSIk0rXi1O69+KHndjbyyl6WM9MKTgm+vrcAJ1JnTP8X7Tvl+Fq6jJ1mwydliQj2Mfq+PCBAEw=; Received: from jbeich by internal.tormail.org with local (Exim 4.63) (envelope-from ) id 1TZFkh-00091p-22; Fri, 16 Nov 2012 06:50:13 +0000 From: Jan Beich To: Hans Petter Selasky Subject: Re: linux joystick In-Reply-To: <201211152119.29494.hselasky@c2i.net> (Hans Petter Selasky's message of "Thu, 15 Nov 2012 21:19:29 +0100") Date: Fri, 16 Nov 2012 07:44:20 +0100 References: <1TZ2UN-0007lV-2Q@internal.tormail.org> <201211152119.29494.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-TorMail-User: jbeich Message-Id: <1TZFkh-00091p-22@internal.tormail.org> Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2012 06:52:29 -0000 --=-=-= Content-Type: text/plain Content-Disposition: inline Hans Petter Selasky writes: > On Thursday 15 November 2012 17:37:37 Jan Beich wrote: > >> Many linux games and wine provide support only for linux joystick. >> emulators/joytran helps but some games do not even support more than one >> keyboard player e.g., Shank. >> >> As devel/linux-js is nowadays broken I've tried to comile webcamd with >> CONFIG_INPUT_JOYDEV but it still fails to attach to my usb gamepad. >> OTOH, webcamd has no trouble attaching to my wacom tablet. Any clue >> what may be missing? >> >> -- >> # ubuntu (laptop) >> [ 33.907951] usb 2-1.5: new low-speed USB device number 3 using ehci_hcd >> [ 34.097118] input: Mega World Thrustmaster dual analog 3.2 as >> /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.5/2-1.5:1.0/input/input15 [ >> 34.097409] generic-usb 0003:044F:B315.0001: input,hidraw0: USB HID v1.10 >> Gamepad [Mega World Thrustmaster dual analog 3.2] on >> usb-0000:00:1d.0-1.5/input0 [ 34.097427] usbcore: registered new >> interface driver usbhid >> [ 34.097430] usbhid: USB HID core driver >> >> # freebsd (foobox) >> $ usbconfig -d 3.3 dump_curr_config_desc >> ugen3.3: at usbus3, cfg=0 md=HOST >> spd=LOW (1.5Mbps) pwr=ON >> >> >> Configuration index 0 >> >> bLength = 0x0009 >> bDescriptorType = 0x0002 >> wTotalLength = 0x0022 >> bNumInterfaces = 0x0001 >> bConfigurationValue = 0x0001 >> iConfiguration = 0x0000 >> bmAttributes = 0x00a0 >> bMaxPower = 0x00af >> >> Interface 0 >> bLength = 0x0009 >> bDescriptorType = 0x0004 >> bInterfaceNumber = 0x0000 >> bAlternateSetting = 0x0000 >> bNumEndpoints = 0x0001 >> bInterfaceClass = 0x0003 >> bInterfaceSubClass = 0x0000 >> bInterfaceProtocol = 0x0000 >> iInterface = 0x0000 >> >> Additional Descriptor >> >> bLength = 0x09 >> bDescriptorType = 0x21 >> bDescriptorSubType = 0x10 >> RAW dump: >> 0x00 | 0x09, 0x21, 0x10, 0x01, 0x00, 0x01, 0x22, 0x6c, >> 0x08 | 0x00 >> >> Endpoint 0 >> bLength = 0x0007 >> bDescriptorType = 0x0005 >> bEndpointAddress = 0x0081 >> bmAttributes = 0x0003 >> wMaxPacketSize = 0x0008 >> bInterval = 0x000a >> bRefresh = 0x0000 >> bSynchAddress = 0x0000 >> >> $ webcamd -d 3.3 >> webcamd: Cannot find USB device > > Hi, > > How did you configure this? > > Did you install work/webcamd*/tools/linux_make ? > > And did you run "make -C work/webcamd* configure", after make extract patch? > > --HPS I've added a proper do-configure and made sure joydev.o is actually built. $ nm =webcamd | fgrep joy 0000000000408980 t joydev_cleanup 0000000000407860 t joydev_connect 0000000000407cd0 t joydev_disconnect 0000000000407640 t joydev_event 0000000000407630 t joydev_exit 0000000000a0b190 d joydev_exit_p 00000000004088d0 t joydev_fasync 000000000069d960 r joydev_fops 0000000000408a20 t joydev_free 00000000009885a0 d joydev_handler 000000000069d9e0 r joydev_ids 0000000000407620 t joydev_init 0000000000a09fd0 d joydev_init_p 0000000000408140 t joydev_ioctl 00000000004077f0 t joydev_match 0000000000408750 t joydev_open 00000000004080d0 t joydev_poll 0000000000407d10 t joydev_read 00000000004088e0 t joydev_release 0000000000a104e0 b joydev_table 0000000000988618 d joydev_table_mutex I've also tried $ pkill devd $ kldunload uhid $ webcamd -d 3.2 webcamd: Cannot find USB device -- $ usbconfig -d 3.2 dump_device_desc ugen3.2: at usbus3, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0110 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0008 idVendor = 0x044f idProduct = 0xb315 bcdDevice = 0x0101 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0000 bNumConfigurations = 0x0001 $ usbhidctl -f /dev/uhid0 -r Report descriptor: Collection type=Application page=Generic_Desktop usage=Game_Pad Collection type=Physical page=Generic_Desktop usage=Pointer Input rid=0 size=1 count=1 page=Button usage=Button_1, logical range 0..1 Input rid=0 size=1 count=1 page=Button usage=Button_2, logical range 0..1 Input rid=0 size=1 count=1 page=Button usage=Button_3, logical range 0..1 Input rid=0 size=1 count=1 page=Button usage=Button_4, logical range 0..1 Input rid=0 size=1 count=1 page=Button usage=Button_5, logical range 0..1 Input rid=0 size=1 count=1 page=Button usage=Button_6, logical range 0..1 Input rid=0 size=1 count=1 page=Button usage=Button_7, logical range 0..1 Input rid=0 size=1 count=1 page=Button usage=Button_8, logical range 0..1 Input rid=0 size=1 count=1 page=Button usage=Button_9, logical range 0..1 Input rid=0 size=1 count=1 page=Button usage=Button_10, logical range 0..1 Input rid=0 size=1 count=1 page=Button usage=Button_11, logical range 0..1 Input rid=0 size=1 count=1 page=Button usage=Button_12, logical range 0..1 Input rid=0 size=4 count=1 page=Generic_Desktop usage=Hat_Switch, logical range 0..7, physical range 0..270, unit=0x40 exp=0 Input rid=0 size=8 count=1 page=Generic_Desktop usage=X, logical range -128..127, physical range 0..255 Input rid=0 size=8 count=1 page=Generic_Desktop usage=Y, logical range -128..127, physical range 0..255 Input rid=0 size=8 count=1 page=Generic_Desktop usage=Rz, logical range -128..127, physical range 0..255 Input rid=0 size=8 count=1 page=Generic_Desktop usage=Slider, logical range 0..255, physical range 0..255 Output rid=0 size=8 count=1 page=Generic_Desktop usage=0x00bb, logical range 0..255, physical range 0..255 Output rid=0 size=8 count=1 page=Generic_Desktop usage=0x00bb, logical range 0..255, physical range 0..255 Output rid=0 size=8 count=1 page=Generic_Desktop usage=0x00bb, logical range 0..255, physical range 0..255 Output rid=0 size=8 count=1 page=Generic_Desktop usage=0x00bb, logical range 0..255, physical range 0..255 End collection End collection Total input size 7 bytes Total output size 4 bytes Total feature size 0 bytes And my patch for do-configure + build fix should follow --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=joybuild.diff Index: multimedia/webcamd/Makefile =================================================================== --- multimedia/webcamd/Makefile (revision 307263) +++ multimedia/webcamd/Makefile (working copy) @@ -79,6 +79,10 @@ MAKE_ARGS+=" HAVE_DEBUG=YES" IGNORE= requires FreeBSD 8.0-RELEASE or later .endif +do-configure: + ${MAKE} -C${WRKSRC}/tools/linux_make + ${MAKE} configure -C${WRKSRC} + post-patch: @cd ${WRKSRC}/patches; ${SH} ./do_patch.sh Index: multimedia/webcamd/files/patch-Makefile =================================================================== --- multimedia/webcamd/files/patch-Makefile (revision 0) +++ multimedia/webcamd/files/patch-Makefile (working copy) @@ -0,0 +1,11 @@ +--- Makefile~ ++++ Makefile +@@ -277,7 +277,7 @@ help: + @echo "#" + + configure: +- linux_make -c config \ ++ tools/linux_make/linux_make -c config \ + -i media_tree/drivers/input \ + -i media_tree/drivers/media \ + -i media_tree/drivers/staging/media \ Index: multimedia/webcamd/files/patch-joy =================================================================== --- multimedia/webcamd/files/patch-joy (revision 0) +++ multimedia/webcamd/files/patch-joy (working copy) @@ -0,0 +1,29 @@ +--- config~ ++++ config +@@ -149,6 +149,8 @@ CONFIG_FW_LOADER=y + CONFIG_I2C=y + CONFIG_I2C_SI470X=y + CONFIG_INPUT=y ++CONFIG_INPUT_JOYDEV=y ++CONFIG_INPUT_JOYSTICK=y + CONFIG_INPUT_EVDEV=y + CONFIG_INPUT_TABLET=y + CONFIG_INPUT_TOUCHSCREEN=y +@@ -167,6 +168,7 @@ CONFIG_IR_SANYO_DECODER=y + CONFIG_IR_SONY_DECODER=y + CONFIG_IR_STREAMZAP=y + CONFIG_IR_TTUSBIR=y ++CONFIG_JOYSTICK_XPAD=y + CONFIG_LIRC=y + CONFIG_LIRC_IGORPLUGUSB=y + CONFIG_LIRC_STAGING=y +--- kernel/linux_defs.h~ ++++ kernel/linux_defs.h +@@ -220,6 +225,7 @@ + }) + #define DEFAULT_POLLMASK POLLNVAL + #define POLL_ERR POLLERR ++#define IOCSIZE_MASK (_IOC_SIZEMASK << _IOC_SIZESHIFT) + #define _IOC_TYPE(cmd) IOCGROUP(cmd) + #define _IOC_SIZE(cmd) IOCPARM_LEN(cmd) + #define _IOC_NR(cmd) ((cmd) & 0xFF) --=-=-=-- From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 16 07:42:47 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3F8777CA for ; Fri, 16 Nov 2012 07:42:47 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe06.c2i.net [212.247.154.162]) by mx1.freebsd.org (Postfix) with ESMTP id B65F68FC0C for ; Fri, 16 Nov 2012 07:42:46 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe06.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 344324960; Fri, 16 Nov 2012 08:42:38 +0100 From: Hans Petter Selasky To: Jan Beich Subject: Re: linux joystick Date: Fri, 16 Nov 2012 08:44:18 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <1TZ2UN-0007lV-2Q@internal.tormail.org> <201211152119.29494.hselasky@c2i.net> <1TZFkh-00091p-22@internal.tormail.org> In-Reply-To: <1TZFkh-00091p-22@internal.tormail.org> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201211160844.18798.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2012 07:42:47 -0000 > > And my patch for do-configure + build fix should follow Hi, I think you need to add: -i media_tree/drivers/input/joystick to the linux_make arguments. Because that Makefile is not linked with the parent one I think. Then re-run the commands. --HPS From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 16 09:30:37 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DDAB0119 for ; Fri, 16 Nov 2012 09:30:37 +0000 (UTC) (envelope-from jbeich@tormail.org) Received: from outgoing.tormail.org (outgoing.tormail.org [82.221.96.22]) by mx1.freebsd.org (Postfix) with ESMTP id 74AF18FC08 for ; Fri, 16 Nov 2012 09:30:37 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=internal.tormail.org) by outgoing.tormail.org with esmtp (Exim 4.72) (envelope-from ) id 1TZIFu-0004ti-3U; Fri, 16 Nov 2012 12:30:35 +0300 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tormail.org; s=tm; h=Message-Id:X-TorMail-User:Content-Type:MIME-Version:References:Date:Subject:Cc:To:From; bh=MKx/lfPQBdZdzLfVwxcVos4UW/ZCW7esSUq4ugH+YBs=; b=k9rco83JrnrcFAp5+/0nySv0rx4WOrRIf3r+q6o+Xyg7KPlvwxy3QYBLdWxxJII07TcBfEzTCLoyk6A2/sqXcJIsHnAF6LbxmlSt+wZwzxMqYMSNJ0xEVGnAlah+FrkRYdhrZcvVirDxram2qrcTA4Vi/uXsQzfvHUXur5HCdjo=; Received: from jbeich by internal.tormail.org with local (Exim 4.63) (envelope-from ) id 1TZIDy-000OLa-S8; Fri, 16 Nov 2012 09:28:36 +0000 From: Jan Beich To: Hans Petter Selasky Subject: Re: linux joystick Date: Fri, 16 Nov 2012 13:29:12 +0400 References: <1TZ2UN-0007lV-2Q@internal.tormail.org> <201211152119.29494.hselasky@c2i.net> <1TZFkh-00091p-22@internal.tormail.org> <201211160844.18798.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain X-TorMail-User: jbeich Message-Id: <1TZIDy-000OLa-S8@internal.tormail.org> Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2012 09:30:38 -0000 Hans Petter Selasky writes: >> >> And my patch for do-configure + build fix should follow > > Hi, > > I think you need to add: > > -i media_tree/drivers/input/joystick > > to the linux_make arguments. This doesn't affect checksum of the produced binary. > > Because that Makefile is not linked with the parent one I think. > > Then re-run the commands. I'm building only media_tree/drivers/input/joydev.c media_tree/drivers/input/joystick/xpad.c and they're both present in the resulting binary. I think my gamepad is generic enough to not need any driver from media_tree/drivers/input/joystick/. On linux joydev works with usbhid. So, webcamd probably needs to attach to /dev/uhidN, not /dev/ugenN.M. > > --HPS From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 16 09:39:08 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4715B1CB for ; Fri, 16 Nov 2012 09:39:08 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id C41CC8FC13 for ; Fri, 16 Nov 2012 09:39:07 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 348155430; Fri, 16 Nov 2012 10:38:59 +0100 From: Hans Petter Selasky To: Jan Beich Subject: Re: linux joystick Date: Fri, 16 Nov 2012 10:40:39 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <1TZ2UN-0007lV-2Q@internal.tormail.org> <201211160844.18798.hselasky@c2i.net> <1TZIDy-000OLa-S8@internal.tormail.org> In-Reply-To: <1TZIDy-000OLa-S8@internal.tormail.org> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201211161040.39454.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2012 09:39:08 -0000 On Friday 16 November 2012 10:29:12 Jan Beich wrote: > Hans Petter Selasky writes: > >> And my patch for do-configure + build fix should follow > > > > Hi, > > > > I think you need to add: > > > > -i media_tree/drivers/input/joystick > > > > to the linux_make arguments. > > This doesn't affect checksum of the produced binary. > > > Because that Makefile is not linked with the parent one I think. > > > > Then re-run the commands. > > I'm building only > > media_tree/drivers/input/joydev.c > media_tree/drivers/input/joystick/xpad.c > > and they're both present in the resulting binary. > > I think my gamepad is generic enough to not need any driver from > media_tree/drivers/input/joystick/. On linux joydev works with usbhid. > So, webcamd probably needs to attach to /dev/uhidN, not /dev/ugenN.M. > > > --HPS Hi, Can you check that your device is present in the ID-table in xpad.c: static struct usb_device_id xpad_table [] = { And add some prints in the probe section in xpad.c? Also, sometimes you need to specify the interface number to webcamd. It should not matter if uhid is attached or not. --HPS From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 16 13:19:50 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E4BE7311 for ; Fri, 16 Nov 2012 13:19:50 +0000 (UTC) (envelope-from jbeich@tormail.org) Received: from outgoing.tormail.org (outgoing.tormail.org [82.221.96.22]) by mx1.freebsd.org (Postfix) with ESMTP id 53EA68FC08 for ; Fri, 16 Nov 2012 13:19:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=internal.tormail.org) by outgoing.tormail.org with esmtp (Exim 4.72) (envelope-from ) id 1TZLpc-0005VY-8O; Fri, 16 Nov 2012 16:19:48 +0300 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tormail.org; s=tm; h=Message-Id:X-TorMail-User:Content-Type:MIME-Version:References:Date:In-Reply-To:Subject:Cc:To:From; bh=resY1I3eKyl2ekoZk5H01Yml7uz1kNnavxal2s5BmS4=; b=ZhlwtWUeTPlLFlf57kdtsx74KT3Vp47u/EsHQxxpQb4j0nt/CibXtaVPKoA1Js15+Vu5uSlcQ4yNCKr3d6h4x1NJPzmdIDIphbpwQ6me+/OAihKXUO88MNyURWDlgAItRodhiREQ6Swo0/jcEn19PoT3k5eYe4zJYG8JV4R1icE=; Received: from jbeich by internal.tormail.org with local (Exim 4.63) (envelope-from ) id 1TZLm8-000Osa-0r; Fri, 16 Nov 2012 13:16:05 +0000 From: Jan Beich To: Hans Petter Selasky Subject: Re: linux joystick In-Reply-To: <201211161040.39454.hselasky@c2i.net> (Hans Petter Selasky's message of "Fri, 16 Nov 2012 10:40:39 +0100") Date: Fri, 16 Nov 2012 23:14:40 +1000 References: <1TZ2UN-0007lV-2Q@internal.tormail.org> <201211160844.18798.hselasky@c2i.net> <1TZIDy-000OLa-S8@internal.tormail.org> <201211161040.39454.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-TorMail-User: jbeich Message-Id: <1TZLm8-000Osa-0r@internal.tormail.org> Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2012 13:19:51 -0000 --=-=-= Content-Type: text/plain Content-Disposition: inline Hans Petter Selasky writes: > On Friday 16 November 2012 10:29:12 Jan Beich wrote: > >> Hans Petter Selasky writes: >> >> And my patch for do-configure + build fix should follow >> > >> > Hi, >> > >> > I think you need to add: >> > >> > -i media_tree/drivers/input/joystick >> > >> > to the linux_make arguments. >> >> This doesn't affect checksum of the produced binary. >> >> > Because that Makefile is not linked with the parent one I think. >> > >> > Then re-run the commands. >> >> I'm building only >> >> media_tree/drivers/input/joydev.c >> media_tree/drivers/input/joystick/xpad.c >> >> and they're both present in the resulting binary. >> >> I think my gamepad is generic enough to not need any driver from >> media_tree/drivers/input/joystick/. On linux joydev works with usbhid. >> So, webcamd probably needs to attach to /dev/uhidN, not /dev/ugenN.M. >> >> > --HPS > > Hi, > > Can you check that your device is present in the ID-table in xpad.c: > > static struct usb_device_id xpad_table [] = { > > And add some prints in the probe section in xpad.c? OK, I've added // xpad_table[] { USB_DEVICE(0x044f, 0xb315) }, /* Thrustmaster dual analog 3.2 */ // xpad_device[] { 0x044f, 0xb315, "Thrustmaster dual analog 3.2", 0, XTYPE_XBOX360 }, # without/with xpad_device[] line $ ./webcamd -d 3.2 Attached to ugen3.2[0] -@ name="Generic X-Box pad" phys="usb-/dev/usb-/dev/usb/input0" +@ name="Thrustmaster dual analog 3.2" phys="usb-/dev/usb-/dev/usb/input0" | xpad_set_up_abs(..., xpad_abs[0]=0) | xpad_set_up_abs(..., xpad_abs[1]=1) | xpad_set_up_abs(..., xpad_abs[2]=3) | xpad_set_up_abs(..., xpad_abs[3]=4) | __set_bit(xpad_common_btn[0]=304, ...) | __set_bit(xpad_common_btn[1]=305, ...) | __set_bit(xpad_common_btn[2]=307, ...) | __set_bit(xpad_common_btn[3]=308, ...) | __set_bit(xpad_common_btn[4]=315, ...) | __set_bit(xpad_common_btn[5]=314, ...) | __set_bit(xpad_common_btn[6]=317, ...) | __set_bit(xpad_common_btn[7]=318, ...) -| __set_bit(xpad_btn[0]=306, ...) -| __set_bit(xpad_btn[1]=309, ...) +| __set_bit(xpad360_btn[0]=310, ...) +| __set_bit(xpad360_btn[1]=311, ...) +| __set_bit(xpad360_btn[2]=316, ...) | xpad_set_up_abs(..., xpad_abs_pad[0]=16) | xpad_set_up_abs(..., xpad_abs_pad[1]=17) | xpad_set_up_abs(..., xpad_abs_triggers[0]=2) | xpad_set_up_abs(..., xpad_abs_triggers[1]=5) Creating /dev/input/event0 $ chown foo:foo /dev/input/event0 $ (cd /dev/input; ln -s event0 js0) $ /b/shank/bin/Shank ^C $ dmesg | fgrep Shank linux: pid 51084 (Shank): ioctl fd=23, cmd=0x4520 ('E',32) is not implemented (EVIOCGBIT) linux: pid 51084 (Shank): ioctl fd=23, cmd=0x4521 ('E',33) is not implemented (EVIOCGBIT) linux: pid 51084 (Shank): ioctl fd=23, cmd=0x6a11 ('j',17) is not implemented (JSIOCGAXES) linux: pid 51084 (Shank): ioctl fd=23, cmd=0x6a12 ('j',18) is not implemented (JSIOCGBUTTONS) linux: pid 51084 (Shank): ioctl fd=24, cmd=0x4506 ('E',6) is not implemented (EVIOCGNAME) linux: pid 51084 (Shank): ioctl fd=24, cmd=0x6a13 ('j',19) is not implemented (JSIOCGNAME) However, xpad isn't the right driver for my gamepad. Trying to press first 4 buttons yields nothing and setting XBOX360 type doesn't help. # freebsd + webcamd $ hd /dev/input/js0 ... ^C # ubuntu $ hd /dev/input/js0 ... 000000b0 d8 9a 56 00 00 00 01 02 60 ac 56 00 01 00 01 02 |..V.....`.V.....| 000000c0 f0 ac 56 00 00 00 01 02 e0 ae 56 00 01 00 01 00 |..V.......V.....| 000000d0 50 af 56 00 00 00 01 00 48 b1 56 00 01 00 01 03 |P.V.....H.V.....| 000000e0 d0 b1 56 00 00 00 01 03 c0 b3 56 00 01 00 01 01 |..V.......V.....| ^C Moving D-pad or 2 analog sticks does generate some output, still different. An example for pressing "down" button on D-pad follows # freebsd + webcamd $ hd /dev/input/js0 ... 000005a0 5c f3 00 00 00 00 00 00 a1 00 08 00 00 00 00 00 |\...............| 000005b0 01 00 30 01 01 00 00 00 5c f3 00 00 00 00 00 00 |..0.....\.......| 000005c0 a2 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 000005d0 5c f3 00 00 00 00 00 00 9e fa 08 00 00 00 00 00 |\...............| 000005e0 01 00 30 01 00 00 00 00 5c f3 00 00 00 00 00 00 |..0.....\.......| 000005f0 a0 fa 08 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| ^C # ubuntu $ hd /dev/input/js0 ... 00000090 10 8c 69 00 00 00 02 03 98 99 69 00 ff 7f 02 01 |..i.......i.....| ^C Anything else to test e.g., wine built with linux/joystick.h support? > > Also, sometimes you need to specify the interface number to webcamd. > > It should not matter if uhid is attached or not. > > --HPS -- a patch with printfs should follow --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=printfs.diff --- media_tree/drivers/input/joystick/xpad.c~ +++ media_tree/drivers/input/joystick/xpad.c @@ -124,6 +124,7 @@ static const struct xpad_device { { 0x045e, 0x0719, "Xbox 360 Wireless Receiver", MAP_DPAD_TO_BUTTONS, XTYPE_XBOX360W }, { 0x0c12, 0x8809, "RedOctane Xbox Dance Pad", DANCEPAD_MAP_CONFIG, XTYPE_XBOX }, { 0x044f, 0x0f07, "Thrustmaster, Inc. Controller", 0, XTYPE_XBOX }, + { 0x044f, 0xb315, "Thrustmaster dual analog 3.2", 0, XTYPE_XBOX360 }, { 0x046d, 0xc242, "Logitech Chillstream Controller", 0, XTYPE_XBOX360 }, { 0x046d, 0xca84, "Logitech Xbox Cordless Controller", 0, XTYPE_XBOX }, { 0x046d, 0xca88, "Logitech Compact Controller for Xbox", 0, XTYPE_XBOX }, @@ -237,6 +238,7 @@ static const signed short xpad_abs_trigg static struct usb_device_id xpad_table [] = { { USB_INTERFACE_INFO('X', 'B', 0) }, /* X-Box USB-IF not approved class */ + { USB_DEVICE(0x044f, 0xb315) }, /* Thrustmaster dual analog 3.2 */ XPAD_XBOX360_VENDOR(0x045e), /* Microsoft X-Box 360 controllers */ XPAD_XBOX360_VENDOR(0x046d), /* Logitech X-Box 360 style controllers */ XPAD_XBOX360_VENDOR(0x0738), /* Mad Catz X-Box 360 controllers */ @@ -891,6 +893,7 @@ static int xpad_probe(struct usb_interfa input_dev->dev.parent = &intf->dev; input_set_drvdata(input_dev, xpad); + printf("@ name=\"%s\" phys=\"%s\"\n", input_dev->name, input_dev->phys); input_dev->open = xpad_open; input_dev->close = xpad_close; @@ -900,37 +903,54 @@ static int xpad_probe(struct usb_interfa if (!(xpad->mapping & MAP_STICKS_TO_NULL)) { input_dev->evbit[0] |= BIT_MASK(EV_ABS); /* set up axes */ - for (i = 0; xpad_abs[i] >= 0; i++) + for (i = 0; xpad_abs[i] >= 0; i++) { xpad_set_up_abs(input_dev, xpad_abs[i]); + printf("| xpad_set_up_abs(..., xpad_abs[%d]=%d)\n", + i, xpad_abs[i]); + } } /* set up standard buttons */ - for (i = 0; xpad_common_btn[i] >= 0; i++) + for (i = 0; xpad_common_btn[i] >= 0; i++) { __set_bit(xpad_common_btn[i], input_dev->keybit); + printf("| __set_bit(xpad_common_btn[%d]=%d, ...)\n", i, xpad_common_btn[i]); + } /* set up model-specific ones */ if (xpad->xtype == XTYPE_XBOX360 || xpad->xtype == XTYPE_XBOX360W) { - for (i = 0; xpad360_btn[i] >= 0; i++) + for (i = 0; xpad360_btn[i] >= 0; i++) { __set_bit(xpad360_btn[i], input_dev->keybit); + printf("| __set_bit(xpad360_btn[%d]=%d, ...)\n", i, xpad360_btn[i]); + } } else { - for (i = 0; xpad_btn[i] >= 0; i++) + for (i = 0; xpad_btn[i] >= 0; i++) { __set_bit(xpad_btn[i], input_dev->keybit); + printf("| __set_bit(xpad_btn[%d]=%d, ...)\n", i, xpad_btn[i]); + } } if (xpad->mapping & MAP_DPAD_TO_BUTTONS) { - for (i = 0; xpad_btn_pad[i] >= 0; i++) + for (i = 0; xpad_btn_pad[i] >= 0; i++) { __set_bit(xpad_btn_pad[i], input_dev->keybit); + printf("| __set_bit(xpad_btn_pad[%d]=%d, ...)\n", i, xpad_btn_pad[i]); + } } else { - for (i = 0; xpad_abs_pad[i] >= 0; i++) + for (i = 0; xpad_abs_pad[i] >= 0; i++) { xpad_set_up_abs(input_dev, xpad_abs_pad[i]); + printf("| xpad_set_up_abs(..., xpad_abs_pad[%d]=%d)\n", i, xpad_abs_pad[i]); + } } if (xpad->mapping & MAP_TRIGGERS_TO_BUTTONS) { - for (i = 0; xpad_btn_triggers[i] >= 0; i++) + for (i = 0; xpad_btn_triggers[i] >= 0; i++) { __set_bit(xpad_btn_triggers[i], input_dev->keybit); + printf("| __set_bit(xpad_btn_triggers[%d]=%d, ...)\n", i, xpad_btn_triggers[i]); + } } else { - for (i = 0; xpad_abs_triggers[i] >= 0; i++) + for (i = 0; xpad_abs_triggers[i] >= 0; i++) { xpad_set_up_abs(input_dev, xpad_abs_triggers[i]); + printf("| xpad_set_up_abs(..., xpad_abs_triggers[%d]=%d)\n", i, xpad_abs_triggers[i]); + } } error = xpad_init_output(intf, xpad); --=-=-=-- From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 16 13:59:10 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 27038A0E for ; Fri, 16 Nov 2012 13:59:10 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.c2i.net [212.247.154.226]) by mx1.freebsd.org (Postfix) with ESMTP id 9E0F78FC08 for ; Fri, 16 Nov 2012 13:59:09 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 346569627; Fri, 16 Nov 2012 14:59:01 +0100 From: Hans Petter Selasky To: Jan Beich Subject: Re: linux joystick Date: Fri, 16 Nov 2012 15:00:41 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <1TZ2UN-0007lV-2Q@internal.tormail.org> <201211161040.39454.hselasky@c2i.net> <1TZLm8-000Osa-0r@internal.tormail.org> In-Reply-To: <1TZLm8-000Osa-0r@internal.tormail.org> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201211161500.41578.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2012 13:59:10 -0000 On Friday 16 November 2012 14:14:40 Jan Beich wrote: > Hans Petter Selasky writes: > > On Friday 16 November 2012 10:29:12 Jan Beich wrote: > >> Hans Petter Selasky writes: Hi, > $ dmesg | fgrep Shank > linux: pid 51084 (Shank): ioctl fd=23, cmd=0x4520 ('E',32) is not > implemented (EVIOCGBIT) linux: pid 51084 (Shank): ioctl fd=23, cmd=0x4521 > ('E',33) is not implemented (EVIOCGBIT) linux: pid 51084 (Shank): ioctl > fd=23, cmd=0x6a11 ('j',17) is not implemented (JSIOCGAXES) linux: pid > 51084 (Shank): ioctl fd=23, cmd=0x6a12 ('j',18) is not implemented > (JSIOCGBUTTONS) linux: pid 51084 (Shank): ioctl fd=24, cmd=0x4506 ('E',6) > is not implemented (EVIOCGNAME) linux: pid 51084 (Shank): ioctl fd=24, > cmd=0x6a13 ('j',19) is not implemented (JSIOCGNAME) These IOCTL's should go through the linux.ko or something like that. If Shank is a native Linux APP, the IOCTL numbers are a bit different. Else progress looks good. You should submit the USB ID/VENDOR addition to the relevant Linux guys, so I don't have to keep track of that patch. --HPS From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 16 14:03:40 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 33415D87 for ; Fri, 16 Nov 2012 14:03:40 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id AB8C18FC14 for ; Fri, 16 Nov 2012 14:03:39 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 344483418; Fri, 16 Nov 2012 15:03:37 +0100 From: Hans Petter Selasky To: Jan Beich Subject: Re: linux joystick Date: Fri, 16 Nov 2012 15:05:17 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <1TZ2UN-0007lV-2Q@internal.tormail.org> <201211161040.39454.hselasky@c2i.net> <1TZLm8-000Osa-0r@internal.tormail.org> In-Reply-To: <1TZLm8-000Osa-0r@internal.tormail.org> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201211161505.17785.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2012 14:03:40 -0000 On Friday 16 November 2012 14:14:40 Jan Beich wrote: > Hans Petter Selasky writes: > > On Friday 16 November 2012 10:29:12 Jan Beich wrote: > >> Hans Petter Selasky writes: > >> >> And my patch for do-configure + build fix should follow > >> > > >> > Hi, > >> > > >> > I think you need to add: > >> > > >> > -i media_tree/drivers/input/joystick > >> > > >> > to the linux_make arguments. You probably should compile hid-core.c instead, which is not part of my distfile. --HPS From owner-freebsd-multimedia@FreeBSD.ORG Fri Nov 16 16:12:24 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C94BD556 for ; Fri, 16 Nov 2012 16:12:24 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id 4D5CC8FC12 for ; Fri, 16 Nov 2012 16:12:23 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [176.74.213.204] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 348346858; Fri, 16 Nov 2012 17:12:22 +0100 From: Hans Petter Selasky To: Jan Beich Subject: Re: linux joystick Date: Fri, 16 Nov 2012 17:14:02 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.1-PRERELEASE; KDE/4.8.4; amd64; ; ) References: <1TZ2UN-0007lV-2Q@internal.tormail.org> <201211152119.29494.hselasky@c2i.net> <1TZFkh-00091p-22@internal.tormail.org> In-Reply-To: <1TZFkh-00091p-22@internal.tormail.org> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201211161714.02587.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2012 16:12:24 -0000 On Friday 16 November 2012 07:44:20 Jan Beich wrote: > Hans Petter Selasky writes: > > On Thursday 15 November 2012 17:37:37 Jan Beich wrote: > >> Many linux games and wine provide support only for linux joystick. > >> emulators/joytran helps but some games do not even support more than one > >> keyboard player e.g., Shank. > >> > >> As devel/linux-js is nowadays broken I've tried to comile webcamd with > >> CONFIG_INPUT_JOYDEV but it still fails to attach to my usb gamepad. > >> OTOH, webcamd has no trouble attaching to my wacom tablet. Any clue > >> what may be missing? Hi, I've committed some of your configure patches to the webcamd's SVN. If you checkout the SVN today, it should be possible to build staging/for_v3.8 of the media tree. See: http://www.selasky.org/hans_petter/video4bsd I've just added a couple of patches for that. Some work remains before the hid-core.c will compile, but not too much. --HPS From owner-freebsd-multimedia@FreeBSD.ORG Sat Nov 17 13:20:33 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3BEA4DDE for ; Sat, 17 Nov 2012 13:20:33 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from amailer.gwdg.de (amailer.gwdg.de [134.76.10.18]) by mx1.freebsd.org (Postfix) with ESMTP id EB8008FC12 for ; Sat, 17 Nov 2012 13:20:32 +0000 (UTC) Received: from p5dc3ee0b.dip.t-dialin.net ([93.195.238.11] helo=krabat.raven.hur) by mailer.gwdg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1TZhZk-0003h2-LP; Sat, 17 Nov 2012 13:32:44 +0100 Message-ID: <50A783EC.3080801@gwdg.de> Date: Sat, 17 Nov 2012 13:32:44 +0100 From: Rainer Hurling User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121114 Thunderbird/16.0.2 MIME-Version: 1.0 To: Juergen Lock Subject: VLC 2.0.4 audio output module Pulseaudio seg faults Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Authenticated: Id:rhurlin X-Spam-Level: - X-Virus-Scanned: (clean) by exiscan+sophie Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Nov 2012 13:20:33 -0000 While vlc versions up to 2.0.3 runs fine using pulseaudio output module, unfortunately version 2.0.4 immediately seg faults. When I change from pulseaudio output to any other audio output module vlc does not crash. Is this a know issue? Are there any workarounds? I really need pulseaudio for my sound system. My box is running on latest 10.0-CURRENT amd64. Please let me know if I should provide more information. Thanks in advance, Rainer Hurling From owner-freebsd-multimedia@FreeBSD.ORG Sat Nov 17 16:42:05 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 17A4278A for ; Sat, 17 Nov 2012 16:42:05 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id C06AB8FC13 for ; Sat, 17 Nov 2012 16:42:04 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 685A61E007A5; Sat, 17 Nov 2012 17:42:03 +0100 (CET) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.4) with ESMTP id qAHGeRiP074564; Sat, 17 Nov 2012 17:40:27 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id qAHGeRhF074563; Sat, 17 Nov 2012 17:40:27 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Sat, 17 Nov 2012 17:40:27 +0100 To: Rainer Hurling Subject: Re: VLC 2.0.4 audio output module Pulseaudio seg faults Message-ID: <20121117164027.GA74542@triton8.kn-bremen.de> References: <50A783EC.3080801@gwdg.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50A783EC.3080801@gwdg.de> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-multimedia@freebsd.org, Juergen Lock X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Nov 2012 16:42:05 -0000 On Sat, Nov 17, 2012 at 01:32:44PM +0100, Rainer Hurling wrote: > While vlc versions up to 2.0.3 runs fine using pulseaudio output module, > unfortunately version 2.0.4 immediately seg faults. > > When I change from pulseaudio output to any other audio output module > vlc does not crash. > > Is this a know issue? Are there any workarounds? I really need > pulseaudio for my sound system. > > My box is running on latest 10.0-CURRENT amd64. Please let me know if I > should provide more information. > Whoops that is a funny bug. Does the patch below fix it? (put it in files/patch-modules-audio_output-vlcpulse.c ) Thanx! Juergen --- modules/audio_output/vlcpulse.c.orig +++ modules/audio_output/vlcpulse.c @@ -113,10 +113,12 @@ pa_context *vlc_pa_connect (vlc_object_t struct passwd pwbuf, *pw; char buf[len]; - if (getpwuid_r (getuid (), &pwbuf, buf, sizeof (buf), &pw) == 0 - && pw != NULL) - pa_proplist_sets (props, PA_PROP_APPLICATION_PROCESS_USER, - pw->pw_name); + if (getpwuid_r (getuid (), &pwbuf, buf, sizeof (buf), &pw) == 0) { + if (pw != NULL) + pa_proplist_sets (props, PA_PROP_APPLICATION_PROCESS_USER, + pw->pw_name); + break; + } } for (size_t max = sysconf (_SC_HOST_NAME_MAX), len = max % 1024 + 1024; @@ -124,9 +126,11 @@ pa_context *vlc_pa_connect (vlc_object_t { char hostname[len]; - if (gethostname (hostname, sizeof (hostname)) == 0) + if (gethostname (hostname, sizeof (hostname)) == 0) { pa_proplist_sets (props, PA_PROP_APPLICATION_PROCESS_HOST, hostname); + break; + } } const char *session = getenv ("XDG_SESSION_COOKIE"); From owner-freebsd-multimedia@FreeBSD.ORG Sat Nov 17 18:05:44 2012 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7E02C9FD for ; Sat, 17 Nov 2012 18:05:44 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from amailer.gwdg.de (amailer.gwdg.de [134.76.10.18]) by mx1.freebsd.org (Postfix) with ESMTP id 0E2058FC12 for ; Sat, 17 Nov 2012 18:05:43 +0000 (UTC) Received: from p5dc3ee0b.dip.t-dialin.net ([93.195.238.11] helo=krabat.raven.hur) by mailer.gwdg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1TZmlv-0008SN-WE; Sat, 17 Nov 2012 19:05:40 +0100 Message-ID: <50A7D1F3.1080407@gwdg.de> Date: Sat, 17 Nov 2012 19:05:39 +0100 From: Rainer Hurling User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121114 Thunderbird/16.0.2 MIME-Version: 1.0 To: Juergen Lock Subject: Re: VLC 2.0.4 audio output module Pulseaudio seg faults References: <50A783EC.3080801@gwdg.de> <20121117164027.GA74542@triton8.kn-bremen.de> In-Reply-To: <20121117164027.GA74542@triton8.kn-bremen.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Authenticated: Id:rhurlin X-Spam-Level: - X-Virus-Scanned: (clean) by exiscan+sophie Cc: freebsd-multimedia@freebsd.org X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Nov 2012 18:05:44 -0000 On 17.11.2012 17:40 (UTC+2), Juergen Lock wrote: > On Sat, Nov 17, 2012 at 01:32:44PM +0100, Rainer Hurling wrote: >> While vlc versions up to 2.0.3 runs fine using pulseaudio output module, >> unfortunately version 2.0.4 immediately seg faults. >> >> When I change from pulseaudio output to any other audio output module >> vlc does not crash. >> >> Is this a know issue? Are there any workarounds? I really need >> pulseaudio for my sound system. >> >> My box is running on latest 10.0-CURRENT amd64. Please let me know if I >> should provide more information. >> > Whoops that is a funny bug. Does the patch below fix it? (put it in > files/patch-modules-audio_output-vlcpulse.c ) > > Thanx! > Juergen Moin Juergen, while I am writing these lines I am listening vlc with pulseaudio output again :-) So obviously the patch helped. Many thanks and have a nice weekend, Rainer > --- modules/audio_output/vlcpulse.c.orig > +++ modules/audio_output/vlcpulse.c > @@ -113,10 +113,12 @@ pa_context *vlc_pa_connect (vlc_object_t > struct passwd pwbuf, *pw; > char buf[len]; > > - if (getpwuid_r (getuid (), &pwbuf, buf, sizeof (buf), &pw) == 0 > - && pw != NULL) > - pa_proplist_sets (props, PA_PROP_APPLICATION_PROCESS_USER, > - pw->pw_name); > + if (getpwuid_r (getuid (), &pwbuf, buf, sizeof (buf), &pw) == 0) { > + if (pw != NULL) > + pa_proplist_sets (props, PA_PROP_APPLICATION_PROCESS_USER, > + pw->pw_name); > + break; > + } > } > > for (size_t max = sysconf (_SC_HOST_NAME_MAX), len = max % 1024 + 1024; > @@ -124,9 +126,11 @@ pa_context *vlc_pa_connect (vlc_object_t > { > char hostname[len]; > > - if (gethostname (hostname, sizeof (hostname)) == 0) > + if (gethostname (hostname, sizeof (hostname)) == 0) { > pa_proplist_sets (props, PA_PROP_APPLICATION_PROCESS_HOST, > hostname); > + break; > + } > } > > const char *session = getenv ("XDG_SESSION_COOKIE"); >