View previous topic :: View next topic |
Author |
Message |
Mark Clegg Apprentice
Joined: 05 Jan 2004 Posts: 270 Location: ZZ9 Plural Z Alpha
|
|
Back to top |
|
|
ciaranm Retired Dev
Joined: 19 Jul 2003 Posts: 1719 Location: In Hiding
|
Posted: Wed Mar 10, 2004 1:33 am Post subject: |
|
|
Try this. I can't actually test it right now... It's against 4.3.99.whatever the latest in portage is If it works I'll get it added to the xfree ebuilds.
Code: |
--- xc/programs/Xserver/hw/xfree86/os-support/bus/linuxPci.c.orig 2004-03-07 18:40:27.165278000 +0000
+++ xc/programs/Xserver/hw/xfree86/os-support/bus/linuxPci.c 2004-03-07 18:48:07.895278000 +0000
@@ -104,6 +104,7 @@
static int lbus,ldev,lfunc,fd = -1;
int bus, dev, func;
char file[32];
+ struct stat ignored;
bus = PCI_BUS_FROM_TAG(tag);
dev = PCI_DEV_FROM_TAG(tag);
@@ -111,12 +112,21 @@
if (fd == -1 || bus != lbus || dev != ldev || func != lfunc) {
if (fd != -1)
close(fd);
- if (bus < 256)
- sprintf(file, "/proc/bus/pci/%02x/%02x.%1x",
- bus, dev, func);
- else
- sprintf(file, "/proc/bus/pci/%04x/%02x.%1x",
- bus, dev, func);
+ if (bus < 256) {
+ if (stat("/proc/bus/pci/00", &ignored) < 0)
+ sprintf(file, "/proc/bus/pci/%02x/%02x.%1x",
+ bus, dev, func);
+ else
+ sprintf(file, "/proc/bus/pci/0000:%02x/%02x.%1x",
+ bus, dev, func);
+ } else {
+ if (stat("/proc/bus/pci/00", &ignored) < 0)
+ sprintf(file, "/proc/bus/pci/%04x/%02x.%1x",
+ bus, dev, func);
+ else
+ sprintf(file, "/proc/bus/pci/0000:%04x/%02x.%1x",
+ bus, dev, func);
+ }
fd = open(file,O_RDWR);
lbus = bus;
ldev = dev;
|
|
|
Back to top |
|
|
ciaranm Retired Dev
Joined: 19 Jul 2003 Posts: 1719 Location: In Hiding
|
Posted: Wed Mar 10, 2004 7:44 pm Post subject: |
|
|
I'm an eejit. The conditionals in the above patch are backwards... The bug... |
|
Back to top |
|
|
Mark Clegg Apprentice
Joined: 05 Jan 2004 Posts: 270 Location: ZZ9 Plural Z Alpha
|
Posted: Thu Mar 11, 2004 6:39 pm Post subject: |
|
|
As you know - the Ultra 5 isn't the Ultra-Fastest system in the world...
I'll test and let you know..... when I can get a few hours.... |
|
Back to top |
|
|
Mark Clegg Apprentice
Joined: 05 Jan 2004 Posts: 270 Location: ZZ9 Plural Z Alpha
|
Posted: Sat Mar 13, 2004 10:42 am Post subject: |
|
|
Yes - xfree-4.3.99.902-r2 now installs and works. (after downgrading ncurses)
Now for that pesky little rodent...
This is odd...
I have SUN-SU support and Serial Mouse support compiled into the kernel, and dmesg shows the following...
Code: | mice: PS/2 mouse device common for all mice
input: su/serio1/input on su/serio1
input: Sun Mouse on su/serio0 |
Now for the wierd bit.
The mouse doesn't work.
If I boot into 2.4.xx, the mouse works
If I reboot into 2.6.3 - the mouse now works....
So - what is 2.4.xx initialising in the mouse that 2.6.3 is missing? - When 2.4 boots up I get an additional message - Sun Mouse initialised at 1200 baud, but I don't get this in 2.6. - could this be a clue? |
|
Back to top |
|
|
Mark Clegg Apprentice
Joined: 05 Jan 2004 Posts: 270 Location: ZZ9 Plural Z Alpha
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|