@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4



Comments:

<0> I originally had version reporting in the driver then said "nah, can't be right, it's not documented on the web site"
<1> cool
<1> so how about getting the type of attached cable via i2c now? :)
<0> video cable you mean?
<1> yah
<0> I'll let you send me a patch for that, it's quite easy :)
<1> ok
<0> pic16lc_read_1(sc, PIC16LC_REG_AVPACK, &myval);
<0> http://www.xbox-linux.org/wiki/PIC documents the possible values
<1> so if I use that in xboxfb we need to make sure xboxfb depends on pic16lc?
<1> e.g. to config XBOX will always link
<0> what we want to do is set a device property in the pic16lc driver
<0> now, we won't be able to do "early attach" configuration because of the order that things attach here
<0> but as soon as xboxfb attaches to the autoconf tree, we will be able to do setup properly
<0> so in xboxfb_attach, you check for this device property
<0> xbox-avpack or something



<0> If the property is set, then you use it.
<1> ok, that makes sense.
<0> also, there are some settings in xbseeprom that may be useful to you also
<0> specifically VideoStandard and VideoFlags
<0> VideoStandard is PAL, NTSC, NTSC_J
<0> VideoFlags tells you if you're 4:3, letterbox, or 16:9
<0> oh, hope you don't mind, I made pic16lc set the led to orange to match the netbsd colour scheme ;)
<1> I was wondering about that.
<1> now I get it.
<1> otherwise I was sure you missed a green somewhere. :)
<1> have you tested a bootsplash kernel yet?
<0> No, xboxfb needs explicit support for that.
<0> I was thinking about implementing it, but then I got lazy :p
<1> ok
<1> I tried another controller S that I have
<1> looks dumb. :)
<1> <0> what we want to do is set a device property in the pic16lc driver
<1> <0> now, we won't be able to do "early attach" configuration because of
<1> the order that things attach here
<1> <0> but as soon as xboxfb attaches to the autoconf tree, we will be able
<1> to do setup properly
<1> <0> so in xboxfb_attach, you check for this device property
<1> <0> xbox-avpack or something
<1> <0> If the property is set, then you use it.
<1> <1> ok, that makes sense.
<1> <0> also, there are some settings in xbseeprom that may be useful to you
<1> also
<1> <0> specifically VideoStandard and VideoFlags
<1> <0> VideoStandard is PAL, NTSC, NTSC_J
<1> <0> VideoFlags tells you if you're 4:3, letterbox, or 16:9
<1> <0> oh, hope you don't mind, I made pic16lc set the led to orange to
<1> match the netbsd colour scheme ;)
<1> ****
<1> sorry. :)
<1> uhub3 at uhub0 port 4
<1> uhub3: Microsoft Internet Keyboard Pro, cl*** 9/0, rev 1.10/5.00, addr 4
<1> uhub3: 3 ports with 2 removable, bus powered
<1> ugen1 at uhub3 port 1
<1> ugen1: Microsoft product 0x0285, rev 1.10/1.00, addr 5
<1> uhub4 at uhub0 port 1
<0> There are a bunch of different product IDs for the controllers
<1> there you
<0> I only added the one that I had handy
<1> the controller S shows up as "internet keyboard pro"
<1> which is really the usb hub in it.
<0> That's fine, it's just a hub.
<1> so apparently a keyboard is using the same chip. :)
<1> and then the actual controller is a 0x0285
<0> Send me a usbdevs and xboxcontroller patch for product 0x0285
<1> will do
<0> Thanks
<1> also, my usb wheel maybe. :)
<0> heh, might not work so well as a mouse..
<1> yah, wheel + pedals wouldn't be much fun.
<0> pedals could be mouse clicks
<0> does it have a horn?
<1> it has a the fourway digital pad in the middle
<0> That is clickable ;-)
<1> it actually can control the xbox menus fine with that and the buttons.
<1> honk if you love X windows? :)
<0> I don't support the dpad right now, only the left+right analog sticks and abxy



<1> yup, I tested it.
<0> Easy enough to add
<0> Just need to attach a second wsmouse to xboxcontroller and use the dpad for input there
<0> btw, is the mouse a bit drifty for you?
<1> the dang mouse accelerates a good bit when you push the thing over.
<1> yah, it will slowly drift up on mine unless I try to manually center the thing
<1> about 50% of the time it seems like
<0> Yeah, I don't know why that is.
<1> and then really zips if I push the stick too far. :)
<0> Linux reports the raw values to their input subsystem
<0> and reports them as absolute values also
<0> I have to report them as deltas and divide the result by 4096
<0> I can't get my damn X server to run anymore :/
<0> Fatal server error:
<0> can't switch keyboard to raw mode. Enable support for it in the kernel
<1> that is interesting. my keyboard started repeating all the keys
<1> I haven't tried X this morning
<0> which keyboard driver are you using?
<1> repeating is only in X
<1> Keyboard
<1> protocol wskbd
<1> your XF86Config file basically
<1> is pic16lc.h supposed to be emitted by config?
<1> or missing from cvs? :)
<0> make sure your files.i2c is up-to-date
<0> protocol wskbd doesn't work for me at all, the keyboard emits garbage
<1> ah there we go. I guess I didn't cvs update /usr/src/sys itself
<1> any idea why the usb keyboard doesn't work in ddb or kernel prompts?
<1> It seems it should "just work" like any other i386 box
<0> It works on i386?
<0> Interrupts are disabled at those points, which means USB is a no-go.
<0> I think i386 hacks it by using "BIOS emulation" or something.
<0> Ok, X works w/ rawkbd mode if I actually have a keyboard plugged in
<0> But garbage comes out in wskbd mode
<1> with a controller S on the bus also?
<1> mine repeats with a controller or a mouse. for some reason I was thinking the repeating only showed up with the controller.
<0> Mine doesn't repeat, it just spits out garbage.
<0> Ie, if I press enter, I get a bunch of ```````````````
<0> space emits a 6
<0> stupid **** like that
<1> comment out the amdpm stuff
<1> works for me.
<1> is the timer getting replaced by the amdpm one or somethign?
<0> Probably, I'll try it in a second.
<1> it has quality 1000 so would defeat the TSC @ 800
<0> yeah
<0> I can change that on the fly, hold on.
<0> ****, you're brilliant
<1> cool
<1> so your keyboard works?
<0> yessir
<0> I commited a hack to amdpm to not attach a timecounter on nvidia boards
<0> and I'm uploading a sample kernel + rootfs + howto to ftp.netbsd.org right now
<1> swet.
<1> sweet even.
<1> I **** at docs. :)
<1> even more than at coding. :)
<0> hrm, I can't start an X server at boot for some reason
<0> (EE) wsfb(0): ioctl WSDISPLAYIO_SMODE: Inappropriate ioctl for device
<1> using xdm?
<0> no running startx from rc.local
<0> can't login without a keyboard :)
<0> we should ship a customized xromwell
<0> this one is very.. linuxy
<0> including reporting its name as "Linux" :p
<0> I suppose I should just make an ISO rather than instructions on how to burn a CD
<1> maybe start the X server via /etc/ttys then?
<1> It looks like xdm can't autologin
<0> no worries for now, I'm going to let someone else do the "live cd" stuff
<1> yah exactly
<0> grr, I can't seem to boot from an iso i make
<0> maybe it has to be udf..
<0> yup
<0> ok, I have a bootable ISO that can netboot


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #netbsd
or
Go to some related logs:

#firebird
qmail 553 sorry gentoo
bonoboes
#beginner
#politics
#dsl
#politics
#politics
#gentoo
#winxp



Home  |  disclaimer  |  contact  |  submit quotes