Author Topic: VIDEO CARDS: ATI, Intel, VIA... whatever you got...  (Read 32807 times)

JaseP

  • Addicted
  • *
  • Posts: 526
    • View Profile
    • JaseP's LinuxMCE Wiki User page
Re: VIDEO CARDS: ATI, Intel, VIA... whatever you got...
« Reply #30 on: March 22, 2012, 10:12:01 pm »
That answers it then, thanks.
See my User page on the LinuxMCE Wiki for a description of my system configuration (click the little globe under my profile pic).

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: VIDEO CARDS: ATI, Intel, VIA... whatever you got...
« Reply #31 on: March 23, 2012, 09:14:59 pm »
  • Video Cards are completely plug n play now. If you swap cards, it will know. So if you upgrade your onboard nvidia 8200 for instance to a GT260, it will know, purge the old driver and install the appropriate one for you.

Hmm, this is causing me problems with a net install on 1004.  The AVWizard pops up after each and every reboot.  I complete it successfully and orbiter loads, etc, etc... on reboot the AVWizard returns every time.  This may be fixed by issues you mentioned earlier and the newer 20120321 build, I'll check it tonight.

With an unknown video card the AVWizard was NOT creating an xorg.conf which was causing X to crash.

I have a patch, that I will submit tonight, that adds virtualbox video driver detection to your re-worded scripts so X (avwizard, orbiter, etc) will load in virtualbox.

J.
« Last Edit: March 23, 2012, 09:16:50 pm by phenigma »

JaseP

  • Addicted
  • *
  • Posts: 526
    • View Profile
    • JaseP's LinuxMCE Wiki User page
Re: VIDEO CARDS: ATI, Intel, VIA... whatever you got...
« Reply #32 on: March 23, 2012, 09:58:09 pm »
phenigma,

Have you tested virtualbox against the new installer DVD??? What's your experience with running inside of virtualbox??? Positive? Negative? OK, but with issues?

Have you tried KVM at all.
See my User page on the LinuxMCE Wiki for a description of my system configuration (click the little globe under my profile pic).

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: VIDEO CARDS: ATI, Intel, VIA... whatever you got...
« Reply #33 on: March 24, 2012, 12:35:08 am »
phenigma,

Have you tested virtualbox against the new installer DVD??? What's your experience with running inside of virtualbox??? Positive? Negative? OK, but with issues?

Have you tried KVM at all.

Please do not take this the wrong way JaseP, I mean no disrespect, but I do not intend to hijack this thread for a discussion of these topics.  In short: No, varied, depends, sometimes, definitely.  You should search the forum, there have been numerous discussions of running lmce under virtual box and there is more knowledge there than I have about the topic.  Wiki probably has topics too.  I'd be happy to respond to a PM or discuss this in a new topic.

To be on topic: I find lmce works best on virtualbox with the vboxvideo driver enabled rather than the default vesa driver.

J.

ardirtbiker

  • Guru
  • ****
  • Posts: 308
    • View Profile
Re: VIDEO CARDS: ATI, Intel, VIA... whatever you got...
« Reply #34 on: March 24, 2012, 02:33:21 am »
I recently ran an update on my core/hybrid.. its got an onboard ati rage xl card that usually uses the mach64 kernel module... however the new installer detects the board and is trying to install the fglrx module.. it crashes.. I cant even figure out how to get it to get past this so that it finishes booting to the UI1.

Ive tried disabling my onboard video and install a PCI nVidia card... but it seems to be having issues getting it working as well

The nvidia card info is

03:00.0 VGA compatible controller [0300]: nVidia Corporation G98 [GeForce 8400 GS] [10de:06e4] (rev a1)
        Subsystem: eVga.com. Corp. Device [3842:b724]
        Flags: bus master, fast devsel, latency 0, IRQ 26
        Memory at f3000000 (32-bit, non-prefetchable) [size=16M]
        Memory at d0000000 (64-bit, prefetchable) [size=256M]
        Memory at f4000000 (64-bit, non-prefetchable) [size=32M]
        I/O ports at ac00 [size=128]
        [virtual] Expansion ROM at f67e0000 [disabled] [size=128K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
        Capabilities: [78] Express Endpoint, MSI 00
        Kernel driver in use: nvidia
        Kernel modules: nvidia-glx-260, nvidiafb, nouveau

I'd have to shut it down and re-enable the Rage XL card to get that info.

Dennis

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: VIDEO CARDS: ATI, Intel, VIA... whatever you got...
« Reply #35 on: March 24, 2012, 06:56:49 am »
phenigma... that should absolutely not be occurring anymore.

Please give me a pastebin of /usr/pluto/bin/Utils.sh and /etc/init.d/0start_avwizard

Very sorry for the trouble. Will fix immediately if you are indeed at the newest versions.



Dennis: I have never heard of that driver. I will put in a fix. Thanks for giving it a go.
« Last Edit: March 24, 2012, 06:59:17 am by l3mce »
I never quit... I just ping out.

huh

  • Guru
  • ****
  • Posts: 245
    • View Profile
Re: VIDEO CARDS: ATI, Intel, VIA... whatever you got...
« Reply #36 on: March 24, 2012, 07:09:30 am »
Dell Latitude C400, ui2 with alpha is a little laggy, so went to ui2 w/o alpha...  about 1/2" of what should have been the far right of the display was displaced on the left hand side.  Will run through AVWizard again later..  output of 'lspci -v | grep "VGA"'

00:02.0 VGA compatible controller: Intel Corporation 82830 CGC [Chipset Graphics Controller] (rev 04)

bongowongo

  • wants to work for LinuxMCE
  • **
  • Posts: 826
    • View Profile
Re: VIDEO CARDS: ATI, Intel, VIA... whatever you got...
« Reply #37 on: March 24, 2012, 09:12:45 am »
phenigma,

Have you tested virtualbox against the new installer DVD??? What's your experience with running inside of virtualbox??? Positive? Negative? OK, but with issues?

Have you tried KVM at all.


JaseP all the snapshots that work with VirtualBox are listed here.
http://wiki.linuxmce.org/index.php/Snapshot_overview
« Last Edit: March 24, 2012, 02:26:30 pm by bongowongo »

dextaslab

  • Veteran
  • ***
  • Posts: 77
    • View Profile
    • modlog.net
Re: VIDEO CARDS: ATI, Intel, VIA... whatever you got...
« Reply #38 on: March 24, 2012, 02:11:54 pm »
Hmm, this is causing me problems with a net install on 1004.  The AVWizard pops up after each and every reboot.  I complete it successfully and orbiter loads, etc, etc... on reboot the AVWizard returns every time.  This may be fixed by issues you mentioned earlier and the newer 20120321 build, I'll check it tonight.

Same here, I have run apt-get upgrade on the MD and the Core is already updated, I have attached the Utils.sh and 0start_avwizard as text files.

Chipset is:  VGA compatible controller: Intel Corporation Mobile 945GME Express Integrated Graphics Controller (rev 03)
It detects it correctly as an intel driver in xorg.conf

Cheers

ardirtbiker

  • Guru
  • ****
  • Posts: 308
    • View Profile
Re: VIDEO CARDS: ATI, Intel, VIA... whatever you got...
« Reply #39 on: March 24, 2012, 02:55:44 pm »
Here is the lspci -nnv output for the ATI Rage XL card:

03:06.0 VGA compatible controller [0300]: ATI Technologies Inc Rage XL [1002:4752] (rev 27)
        Subsystem: ATI Technologies Inc Device [1002:8008]
        Flags: bus master, stepping, medium devsel, latency 64, IRQ 11
        Memory at fd000000 (32-bit, non-prefetchable) [size=16M]
        I/O ports at b000 [size=256]
        Memory at feaff000 (32-bit, non-prefetchable) [size=4K]
        Expansion ROM at feac0000 [disabled] [size=128K]
        Capabilities: [5c] Power Management version 2
        Kernel modules: atyfb

Xorg document dated Feb 2012:  http://www.x.org/releases/X11R7.5/doc/ati.html

According to the document there is an 'ati' driver for use with this chipset.  

the xserver-xorg-video-ati package IS already installed.   There is a driver named ati_drv.so AND a driver named mach64_drv.so in /usr/lib/xorg/modules/drivers


With Driver  "ati"   set in xorg.conf  running startx brings up the kde desktop.   here is output of Xorg.0.log:
Code: [Select]

X.Org X Server 1.7.6
Release Date: 2010-03-17
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-29-server i686 Ubuntu
Current Operating System: Linux dcerouter 2.6.32-40-generic-pae #87-Ubuntu SMP Mon Mar 5 21:44:34 UTC 2012 i686
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-2.6.32-40-generic-pae root=UUID=a698baa3-0241-4042-96f8-d186b58407b2 ro quiet
Build Date: 25 February 2012  06:59:39AM
xorg-server 2:1.7.6-2ubuntu7.11 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.21.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Mar 24 09:02:20 2012
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using config directory: "/usr/lib/X11/xorg.conf.d"
(==) ServerLayout "X.org Configured"
(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Card0"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
Entry deleted from font path.
(**) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,
built-ins,
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,
built-ins
(**) ModulePath set to "/usr/lib/xorg/modules"
(WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
(WW) Disabling Mouse0
(WW) Disabling Keyboard0
(II) Loader magic: 0x81f0e80
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 6.0
X.Org XInput driver : 7.0
X.Org Server Extension : 2.0
(--) using VT number 1

(--) PCI: (0:1:3:0) 14f1:8800:0070:6906 Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder rev 5, Mem @ 0xf0000000/16777216
(--) PCI: (0:2:3:0) 14f1:8800:7063:5500 Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder rev 5, Mem @ 0xf8000000/16777216
(--) PCI:*(0:3:6:0) 1002:4752:1002:8008 ATI Technologies Inc Rage XL rev 39, Mem @ 0xfd000000/16777216, 0xfeaff000/4096, I/O @ 0x0000b000/256, BIOS @ 0x????????/131072
(II) Open ACPI successful (/var/run/acpid.socket)
(II) "extmod" will be loaded. This was enabled by default and also specified in the config file.
(II) "dbe" will be loaded. This was enabled by default and also specified in the config file.
(II) "glx" will be loaded. This was enabled by default and also specified in the config file.
(II) "record" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri" will be loaded. This was enabled by default and also specified in the config file.
(II) "dri2" will be loaded. This was enabled by default and also specified in the config file.
(II) LoadModule: "record"
(II) Loading /usr/lib/xorg/modules/extensions/librecord.so
(II) Module record: vendor="X.Org Foundation"
compiled for 1.7.6, module version = 1.13.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension RECORD
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="X.Org Foundation"
compiled for 1.7.6, module version = 1.0.0
ABI class: X.Org Server Extension, version 2.0
(==) AIGLX enabled
(II) Loading extension GLX
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions/libdri.so
(II) Module dri: vendor="X.Org Foundation"
compiled for 1.7.6, module version = 1.0.0
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension XFree86-DRI
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
compiled for 1.7.6, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
compiled for 1.7.6, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "dri2"
(II) Loading /usr/lib/xorg/modules/extensions/libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
compiled for 1.7.6, module version = 1.1.0
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
(II) LoadModule: "ati"
(II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so
(II) Module ati: vendor="X.Org Foundation"
compiled for 1.7.6, module version = 6.13.1
Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 6.0
(II) LoadModule: "mach64"
(II) Loading /usr/lib/xorg/modules/drivers/mach64_drv.so
(II) Module mach64: vendor="X.Org Foundation"
compiled for 1.7.2, module version = 6.8.2
Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 6.0
(II) MACH64: Driver for ATI Mach64 chipsets
(II) Primary Device is: PCI 03@00:06:0
(==) MACH64(0): Depth 24, (--) framebuffer bpp 32
(==) MACH64(0): Using XAA acceleration architecture
(II) MACH64: Mach64 in slot 3:6:0 detected.
(II) Loading sub module "int10"
(II) LoadModule: "int10"
(II) Loading /usr/lib/xorg/modules/libint10.so
(II) Module int10: vendor="X.Org Foundation"
compiled for 1.7.6, module version = 1.0.0
ABI class: X.Org Video Driver, version 6.0
(II) MACH64(0): Primary V_BIOS segment is: 0xc000
(II) Loading sub module "ddc"
(II) LoadModule: "ddc"
(II) Module "ddc" already built-in
(II) Loading sub module "vbe"
(II) LoadModule: "vbe"
(II) Loading /usr/lib/xorg/modules/libvbe.so
(II) Module vbe: vendor="X.Org Foundation"
compiled for 1.7.6, module version = 1.1.0
ABI class: X.Org Video Driver, version 6.0
(II) MACH64(0): VESA BIOS detected
(II) MACH64(0): VESA VBE Version 2.0
(II) MACH64(0): VESA VBE Total Mem: 8128 kB
(II) MACH64(0): VESA VBE OEM: ATI MACH64
(II) MACH64(0): VESA VBE OEM Software Rev: 1.0
(II) MACH64(0): VESA VBE OEM Vendor: ATI Technologies Inc.
(II) MACH64(0): VESA VBE OEM Product: MACH64GM
(II) MACH64(0): VESA VBE OEM Product Rev: 01.00
(II) MACH64(0): VESA VBE DDC supported
(II) MACH64(0): VESA VBE DDC Level 2
(II) MACH64(0): VESA VBE DDC transfer in appr. 2 sec.
(II) MACH64(0): VESA VBE DDC read successfully
(II) MACH64(0): Manufacturer: SAM  Model: 191  Serial#: 1112092983
(II) MACH64(0): Year: 2005  Week: 11
(II) MACH64(0): EDID Version: 1.3
(II) MACH64(0): Analog Display Input,  Input Voltage Level: 0.700/0.300 V
(II) MACH64(0): Sync:  Separate  Composite  SyncOnGreen
(II) MACH64(0): Max Image Size [cm]: horiz.: 34  vert.: 27
(II) MACH64(0): Gamma: 2.20
(II) MACH64(0): DPMS capabilities: Off; RGB/Color Display
(II) MACH64(0): First detailed timing is preferred mode
(II) MACH64(0): redX: 0.650 redY: 0.330   greenX: 0.330 greenY: 0.600
(II) MACH64(0): blueX: 0.150 blueY: 0.080   whiteX: 0.313 whiteY: 0.329
(II) MACH64(0): Supported established timings:
(II) MACH64(0): 720x400@70Hz
(II) MACH64(0): 640x480@60Hz
(II) MACH64(0): 640x480@67Hz
(II) MACH64(0): 640x480@72Hz
(II) MACH64(0): 640x480@75Hz
(II) MACH64(0): 800x600@56Hz
(II) MACH64(0): 800x600@60Hz
(II) MACH64(0): 800x600@72Hz
(II) MACH64(0): 800x600@75Hz
(II) MACH64(0): 832x624@75Hz
(II) MACH64(0): 1024x768@60Hz
(II) MACH64(0): 1024x768@70Hz
(II) MACH64(0): 1024x768@75Hz
(II) MACH64(0): 1280x1024@75Hz
(II) MACH64(0): 1152x864@75Hz
(II) MACH64(0): Manufacturer's mask: 0
(II) MACH64(0): Supported standard timings:
(II) MACH64(0): #0: hsize: 1280  vsize 1024  refresh: 60  vid: 32897
(II) MACH64(0): #1: hsize: 1280  vsize 960  refresh: 60  vid: 16513
(II) MACH64(0): #2: hsize: 1152  vsize 864  refresh: 75  vid: 20337
(II) MACH64(0): Supported detailed timing:
(II) MACH64(0): clock: 108.0 MHz   Image Size:  338 x 270 mm
(II) MACH64(0): h_active: 1280  h_sync: 1328  h_sync_end 1440 h_blank_end 1688 h_border: 0
(II) MACH64(0): v_active: 1024  v_sync: 1025  v_sync_end 1028 v_blanking: 1066 v_border: 0
(II) MACH64(0): Ranges: V min: 56 V max: 75 Hz, H min: 30 H max: 81 kHz, PixClock max 140 MHz
(II) MACH64(0): Monitor name: SyncMaster
(II) MACH64(0): Serial No: HCJY329690
(II) MACH64(0): EDID (in hex):
(II) MACH64(0): 00ffffffffffff004c2d910137314942
(II) MACH64(0): 0b0f01030e221b782aaaa5a654549926
(II) MACH64(0): 145054bfef8081808140714f01010101
(II) MACH64(0): 010101010101302a009851002a403070
(II) MACH64(0): 1300520e1100001e000000fd00384b1e
(II) MACH64(0): 510e000a202020202020000000fc0053
(II) MACH64(0): 796e634d61737465720a2020000000ff
(II) MACH64(0): 0048434a593332393639300a20200076
(II) MACH64(0): EDID vendor "SAM", prod id 401
(II) MACH64(0): Using hsync ranges from config file
(II) MACH64(0): Using vrefresh ranges from config file
(II) MACH64(0): Printing DDC gathered Modelines:
(II) MACH64(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz)
(II) MACH64(0): Modeline "800x600"x0.0   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz)
(II) MACH64(0): Modeline "800x600"x0.0   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz)
(II) MACH64(0): Modeline "640x480"x0.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz)
(II) MACH64(0): Modeline "640x480"x0.0   31.50  640 664 704 832  480 489 492 520 -hsync -vsync (37.9 kHz)
(II) MACH64(0): Modeline "640x480"x0.0   30.24  640 704 768 864  480 483 486 525 -hsync -vsync (35.0 kHz)
(II) MACH64(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz)
(II) MACH64(0): Modeline "720x400"x0.0   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz)
(II) MACH64(0): Modeline "1280x1024"x0.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz)
(II) MACH64(0): Modeline "1024x768"x0.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz)
(II) MACH64(0): Modeline "1024x768"x0.0   75.00  1024 1048 1184 1328  768 771 777 806 -hsync -vsync (56.5 kHz)
(II) MACH64(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz)
(II) MACH64(0): Modeline "832x624"x0.0   57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz)
(II) MACH64(0): Modeline "800x600"x0.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz)
(II) MACH64(0): Modeline "800x600"x0.0   50.00  800 856 976 1040  600 637 643 666 +hsync +vsync (48.1 kHz)
(II) MACH64(0): Modeline "1152x864"x0.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz)
(II) MACH64(0): Modeline "1280x960"x0.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz)
(II) MACH64(0): BIOS Data:  BIOSSize=0x8000, ROMTable=0x0114.
(II) MACH64(0): BIOS Data:  ClockTable=0x097C, FrequencyTable=0x0000.
(II) MACH64(0): BIOS Data:  LCDTable=0x0000.
(II) MACH64(0): BIOS Data:  VideoTable=0x0000, HardwareTable=0x015E.
(II) MACH64(0): BIOS Data:  I2CType=0x0F, Tuner=0x00, Decoder=0x00, Audio=0x0F.
(--) MACH64(0): ATI 3D Rage XL or XC graphics controller detected.
(--) MACH64(0): Chip type 4752 "GR", version 7, foundry TSMC, class 0, revision 0x00.
(--) MACH64(0): PCI bus interface detected;  block I/O base is 0xB000.
(--) MACH64(0): ATI Mach64 adapter detected.
(!!) MACH64(0): For information on using the multimedia capabilities
of this adapter, please see http://gatos.sf.net.
(--) MACH64(0): Internal RAMDAC (subtype 1) detected.
(==) MACH64(0): RGB weight 888
(==) MACH64(0): Default visual is TrueColor
(==) MACH64(0): Using gamma correction (1.0, 1.0, 1.0)
(II) MACH64(0): Using Mach64 accelerator CRTC.
(II) MACH64(0): Storing hardware cursor image at 0xFD7FFC00.
(II) MACH64(0): Using 8 MB linear aperture at 0xFD000000.
(!!) MACH64(0): Virtual resolutions will be limited to 8191 kB
 due to linear aperture size and/or placement of hardware cursor image area.
(II) MACH64(0): Using Block 0 MMIO aperture at 0xFEAFF400.
(II) MACH64(0): Using Block 1 MMIO aperture at 0xFEAFF000.
(II) MACH64(0): MMIO write caching enabled.
(--) MACH64(0): 8192 kB of SGRAM (2:1) 32-bit detected (using 8191 kB).
(WW) MACH64(0): Cannot shadow an accelerated frame buffer.
(II) MACH64(0): Engine XCLK 62.353 MHz;  Refresh rate code 1.
(--) MACH64(0): Internal programmable clock generator detected.
(--) MACH64(0): Reference clock 157.5/11 (14.318) MHz.
(II) MACH64(0): Monitor0: Using hsync range of 30.00-81.00 kHz
(II) MACH64(0): Monitor0: Using vrefresh range of 56.00-75.00 Hz
(II) MACH64(0): Monitor0: Using maximum pixel clock of 140.00 MHz
(II) MACH64(0): Estimated virtual size for aspect ratio 1.2593 is 1280x1024
(II) MACH64(0): Maximum clock: 124.00 MHz
(II) MACH64(0): Not using default mode "640x350" (vrefresh out of range)
(II) MACH64(0): Not using default mode "320x175" (vrefresh out of range)
(II) MACH64(0): Not using default mode "640x400" (vrefresh out of range)
(II) MACH64(0): Not using default mode "320x200" (vrefresh out of range)
(II) MACH64(0): Not using default mode "720x400" (vrefresh out of range)
(II) MACH64(0): Not using default mode "360x200" (vrefresh out of range)
(II) MACH64(0): Not using default mode "640x480" (vrefresh out of range)
(II) MACH64(0): Not using default mode "320x240" (vrefresh out of range)
(II) MACH64(0): Not using default mode "800x600" (vrefresh out of range)
(II) MACH64(0): Not using default mode "400x300" (vrefresh out of range)
(II) MACH64(0): Not using default mode "1024x768" (vrefresh out of range)
(II) MACH64(0): Not using default mode "512x384" (vrefresh out of range)
(II) MACH64(0): Not using default mode "1024x768" (vrefresh out of range)
(II) MACH64(0): Not using default mode "512x384" (vrefresh out of range)
(II) MACH64(0): Not using default mode "1280x960" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "640x480" (hsync out of range)
(II) MACH64(0): Not using default mode "1280x1024" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "1280x1024" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "640x512" (hsync out of range)
(II) MACH64(0): Not using default mode "1600x1200" (width too large for virtual size)
(II) MACH64(0): Not using default mode "1600x1200" (width too large for virtual size)
(II) MACH64(0): Not using default mode "1600x1200" (width too large for virtual size)
(II) MACH64(0): Not using default mode "800x600" (hsync out of range)
(II) MACH64(0): Not using default mode "1600x1200" (width too large for virtual size)
(II) MACH64(0): Not using default mode "800x600" (hsync out of range)
(II) MACH64(0): Not using default mode "1600x1200" (width too large for virtual size)
(II) MACH64(0): Not using default mode "800x600" (hsync out of range)
(II) MACH64(0): Not using default mode "1792x1344" (insufficient memory for mode)
(II) MACH64(0): Not using default mode "896x672" (hsync out of range)
(II) MACH64(0): Not using default mode "1792x1344" (insufficient memory for mode)
(II) MACH64(0): Not using default mode "896x672" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "1856x1392" (insufficient memory for mode)
(II) MACH64(0): Not using default mode "928x696" (hsync out of range)
(II) MACH64(0): Not using default mode "1856x1392" (insufficient memory for mode)
(II) MACH64(0): Not using default mode "928x696" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "1920x1440" (insufficient memory for mode)
(II) MACH64(0): Not using default mode "960x720" (hsync out of range)
(II) MACH64(0): Not using default mode "1920x1440" (insufficient memory for mode)
(II) MACH64(0): Not using default mode "960x720" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "1152x864" (vrefresh out of range)
(II) MACH64(0): Not using default mode "576x432" (vrefresh out of range)
(II) MACH64(0): Not using default mode "1152x864" (vrefresh out of range)
(II) MACH64(0): Not using default mode "576x432" (vrefresh out of range)
(II) MACH64(0): Not using default mode "1152x864" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "576x432" (hsync out of range)
(II) MACH64(0): Not using default mode "1360x768" (width too large for virtual size)
(II) MACH64(0): Not using default mode "1360x768" (width too large for virtual size)
(II) MACH64(0): Not using default mode "1400x1050" (width too large for virtual size)
(II) MACH64(0): Not using default mode "1400x1050" (width too large for virtual size)
(II) MACH64(0): Not using default mode "1400x1050" (width too large for virtual size)
(II) MACH64(0): Not using default mode "1400x1050" (width too large for virtual size)
(II) MACH64(0): Not using default mode "700x525" (hsync out of range)
(II) MACH64(0): Not using default mode "1440x900" (width too large for virtual size)
(II) MACH64(0): Not using default mode "1600x1024" (width too large for virtual size)
(II) MACH64(0): Not using default mode "1680x1050" (width too large for virtual size)
(II) MACH64(0): Not using default mode "1680x1050" (width too large for virtual size)
(II) MACH64(0): Not using default mode "1680x1050" (width too large for virtual size)
(II) MACH64(0): Not using default mode "1680x1050" (width too large for virtual size)
(II) MACH64(0): Not using default mode "840x525" (hsync out of range)
(II) MACH64(0): Not using default mode "1680x1050" (width too large for virtual size)
(II) MACH64(0): Not using default mode "840x525" (hsync out of range)
(II) MACH64(0): Not using default mode "1920x1080" (width too large for virtual size)
(II) MACH64(0): Not using default mode "1920x1200" (insufficient memory for mode)
(II) MACH64(0): Not using default mode "1920x1440" (insufficient memory for mode)
(II) MACH64(0): Not using default mode "960x720" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "2048x1536" (insufficient memory for mode)
(II) MACH64(0): Not using default mode "1024x768" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "2048x1536" (insufficient memory for mode)
(II) MACH64(0): Not using default mode "1024x768" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using default mode "2048x1536" (insufficient memory for mode)
(II) MACH64(0): Not using default mode "1024x768" (bad mode clock/interlace/doublescan)
(II) MACH64(0): Not using driver mode "1280x1024" (bad mode clock/interlace/doublescan)
(--) MACH64(0): Virtual size is 1280x1024 (pitch 1280)
(**) MACH64(0): *Driver mode "1280x1024": 108.0 MHz, 64.0 kHz, 60.0 Hz
(II) MACH64(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz)
(**) MACH64(0): *Default mode "1280x1024": 108.0 MHz, 64.0 kHz, 60.0 Hz
(II) MACH64(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz)
(**) MACH64(0): *Driver mode "1280x960": 108.0 MHz, 60.0 kHz, 60.0 Hz
(II) MACH64(0): Modeline "1280x960"x60.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz)
(**) MACH64(0): *Default mode "1280x960": 108.0 MHz, 60.0 kHz, 60.0 Hz
(II) MACH64(0): Modeline "1280x960"x60.0  108.00  1280 1376 1488 1800  960 961 964 1000 +hsync +vsync (60.0 kHz)
(**) MACH64(0): *Driver mode "1152x864": 108.0 MHz, 67.5 kHz, 75.0 Hz
(II) MACH64(0): Modeline "1152x864"x75.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz)
(**) MACH64(0): *Default mode "1152x864": 108.0 MHz, 67.5 kHz, 75.0 Hz
(II) MACH64(0): Modeline "1152x864"x75.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz)
(**) MACH64(0): *Default mode "1152x864": 105.0 MHz, 67.6 kHz, 75.0 Hz
(II) MACH64(0): Modeline "1152x864"x75.0  104.99  1152 1224 1352 1552  864 865 868 902 -hsync +vsync (67.6 kHz)
(**) MACH64(0): *Default mode "1152x864": 96.8 MHz, 63.0 kHz, 70.0 Hz
(II) MACH64(0): Modeline "1152x864"x70.0   96.77  1152 1224 1344 1536  864 865 868 900 -hsync +vsync (63.0 kHz)
(**) MACH64(0): *Default mode "1152x864": 81.6 MHz, 53.7 kHz, 60.0 Hz
(II) MACH64(0): Modeline "1152x864"x60.0   81.62  1152 1216 1336 1520  864 865 868 895 -hsync +vsync (53.7 kHz)
(**) MACH64(0): *Driver mode "1024x768": 78.8 MHz, 60.0 kHz, 75.0 Hz
(II) MACH64(0): Modeline "1024x768"x75.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz)
(**) MACH64(0): *Driver mode "1024x768": 75.0 MHz, 56.5 kHz, 70.1 Hz
(II) MACH64(0): Modeline "1024x768"x70.1   75.00  1024 1048 1184 1328  768 771 777 806 -hsync -vsync (56.5 kHz)
(**) MACH64(0): *Driver mode "1024x768": 65.0 MHz, 48.4 kHz, 60.0 Hz
(II) MACH64(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz)
(**) MACH64(0): *Default mode "1024x768": 78.8 MHz, 60.0 kHz, 75.0 Hz
(II) MACH64(0): Modeline "1024x768"x75.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz)
(**) MACH64(0): *Default mode "1024x768": 75.0 MHz, 56.5 kHz, 70.1 Hz
(II) MACH64(0): Modeline "1024x768"x70.1   75.00  1024 1048 1184 1328  768 771 777 806 -hsync -vsync (56.5 kHz)
(**) MACH64(0): *Default mode "1024x768": 65.0 MHz, 48.4 kHz, 60.0 Hz
(II) MACH64(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz)
(**) MACH64(0): *Driver mode "832x624": 57.3 MHz, 49.7 kHz, 74.6 Hz
(II) MACH64(0): Modeline "832x624"x74.6   57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz)
(**) MACH64(0): *Default mode "832x624": 57.3 MHz, 49.7 kHz, 74.6 Hz
(II) MACH64(0): Modeline "832x624"x74.6   57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz)
(**) MACH64(0): *Driver mode "800x600": 49.5 MHz, 46.9 kHz, 75.0 Hz
(II) MACH64(0): Modeline "800x600"x75.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz)
(**) MACH64(0): *Driver mode "800x600": 50.0 MHz, 48.1 kHz, 72.2 Hz
(II) MACH64(0): Modeline "800x600"x72.2   50.00  800 856 976 1040  600 637 643 666 +hsync +vsync (48.1 kHz)
(**) MACH64(0): *Driver mode "800x600": 40.0 MHz, 37.9 kHz, 60.3 Hz
(II) MACH64(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz)
(**) MACH64(0): *Driver mode "800x600": 36.0 MHz, 35.2 kHz, 56.2 Hz
(II) MACH64(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz)
(**) MACH64(0): *Default mode "800x600": 49.5 MHz, 46.9 kHz, 75.0 Hz
(II) MACH64(0): Modeline "800x600"x75.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz)
(**) MACH64(0): *Default mode "800x600": 50.0 MHz, 48.1 kHz, 72.2 Hz
(II) MACH64(0): Modeline "800x600"x72.2   50.00  800 856 976 1040  600 637 643 666 +hsync +vsync (48.1 kHz)
(**) MACH64(0): *Default mode "800x600": 87.8 MHz, 81.2 kHz, 65.0 Hz (D)
(II) MACH64(0): Modeline "800x600"x65.0   87.75  800 832 928 1080  600 600 602 625 doublescan +hsync +vsync (81.2 kHz)
(**) MACH64(0): *Default mode "800x600": 40.0 MHz, 37.9 kHz, 60.3 Hz
(II) MACH64(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz)
(**) MACH64(0): *Default mode "800x600": 81.0 MHz, 75.0 kHz, 60.0 Hz (D)
(II) MACH64(0): Modeline "800x600"x60.0   81.00  800 832 928 1080  600 600 602 625 doublescan +hsync +vsync (75.0 kHz)
(**) MACH64(0): *Default mode "800x600": 36.0 MHz, 35.2 kHz, 56.2 Hz
(II) MACH64(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz)
(**) MACH64(0): *Default mode "840x525": 87.0 MHz, 76.6 kHz, 69.9 Hz (D)
(II) MACH64(0): Modeline "840x525"x69.9   87.00  840 900 988 1136  525 526 529 548 doublescan -hsync +vsync (76.6 kHz)
(**) MACH64(0): *Default mode "840x525": 73.1 MHz, 65.3 kHz, 60.0 Hz (D)
(II) MACH64(0): Modeline "840x525"x60.0   73.12  840 892 980 1120  525 526 529 544 doublescan -hsync +vsync (65.3 kHz)
(**) MACH64(0): *Default mode "700x525": 77.9 MHz, 81.5 kHz, 74.8 Hz (D)
(II) MACH64(0): Modeline "700x525"x74.8   77.90  700 732 892 956  525 526 532 545 doublescan +hsync +vsync (81.5 kHz)
(**) MACH64(0): *Default mode "700x525": 72.5 MHz, 76.5 kHz, 70.1 Hz (D)
(II) MACH64(0): Modeline "700x525"x70.1   72.53  700 748 824 948  525 525 527 546 doublescan -hsync +vsync (76.5 kHz)
(**) MACH64(0): *Default mode "700x525": 61.0 MHz, 64.9 kHz, 60.0 Hz (D)
(II) MACH64(0): Modeline "700x525"x60.0   61.00  700 744 820 940  525 526 532 541 doublescan +hsync +vsync (64.9 kHz)
(**) MACH64(0): *Default mode "640x512": 67.5 MHz, 80.0 kHz, 75.0 Hz (D)
(II) MACH64(0): Modeline "640x512"x75.0   67.50  640 648 720 844  512 512 514 533 doublescan +hsync +vsync (80.0 kHz)
(**) MACH64(0): *Default mode "640x512": 54.0 MHz, 64.0 kHz, 60.0 Hz (D)
(II) MACH64(0): Modeline "640x512"x60.0   54.00  640 664 720 844  512 512 514 533 doublescan +hsync +vsync (64.0 kHz)
(**) MACH64(0): *Default mode "720x450": 53.2 MHz, 55.9 kHz, 59.9 Hz (D)
(II) MACH64(0): Modeline "720x450"x59.9   53.25  720 760 836 952  450 451 454 467 doublescan -hsync +vsync (55.9 kHz)
(**) MACH64(0): *Driver mode "640x480": 31.5 MHz, 37.5 kHz, 75.0 Hz
(II) MACH64(0): Modeline "640x480"x75.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz)
(**) MACH64(0): *Driver mode "640x480": 31.5 MHz, 37.9 kHz, 72.8 Hz
(II) MACH64(0): Modeline "640x480"x72.8   31.50  640 664 704 832  480 489 492 520 -hsync -vsync (37.9 kHz)
(**) MACH64(0): *Driver mode "640x480": 30.2 MHz, 35.0 kHz, 66.7 Hz
(II) MACH64(0): Modeline "640x480"x66.7   30.24  640 704 768 864  480 483 486 525 -hsync -vsync (35.0 kHz)
(**) MACH64(0): *Driver mode "640x480": 25.2 MHz, 31.5 kHz, 59.9 Hz
(II) MACH64(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz)
(**) MACH64(0): *Default mode "640x480": 31.5 MHz, 37.5 kHz, 75.0 Hz
(II) MACH64(0): Modeline "640x480"x75.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz)
(**) MACH64(0): *Default mode "640x480": 31.5 MHz, 37.9 kHz, 72.8 Hz
(II) MACH64(0): Modeline "640x480"x72.8   31.50  640 664 704 832  480 489 492 520 -hsync -vsync (37.9 kHz)
(**) MACH64(0): *Default mode "640x480": 54.0 MHz, 60.0 kHz, 60.0 Hz (D)
(II) MACH64(0): Modeline "640x480"x60.0   54.00  640 688 744 900  480 480 482 500 doublescan +hsync +vsync (60.0 kHz)
(**) MACH64(0): *Default mode "640x480": 25.2 MHz, 31.5 kHz, 59.9 Hz
(II) MACH64(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz)
(**) MACH64(0): *Driver mode "720x400": 28.3 MHz, 31.5 kHz, 70.1 Hz
(II) MACH64(0): Modeline "720x400"x70.1   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz)
(**) MACH64(0): *Default mode "680x384": 36.0 MHz, 47.4 kHz, 60.0 Hz (D)
(II) MACH64(0): Modeline "680x384"x60.0   36.00  680 704 720 760  384 385 390 395 doublescan +hsync -vsync (47.4 kHz)
(**) MACH64(0): *Default mode "680x384": 42.4 MHz, 47.7 kHz, 59.8 Hz (D)
(II) MACH64(0): Modeline "680x384"x59.8   42.38  680 716 784 888  384 385 390 399 doublescan -hsync +vsync (47.7 kHz)
(**) MACH64(0): *Default mode "576x432": 54.0 MHz, 67.5 kHz, 75.0 Hz (D)
(II) MACH64(0): Modeline "576x432"x75.0   54.00  576 608 672 800  432 432 434 450 doublescan +hsync +vsync (67.5 kHz)
(**) MACH64(0): *Default mode "576x432": 52.5 MHz, 67.6 kHz, 75.0 Hz (D)
(II) MACH64(0): Modeline "576x432"x75.0   52.49  576 612 676 776  432 432 434 451 doublescan -hsync +vsync (67.6 kHz)
(**) MACH64(0): *Default mode "576x432": 48.4 MHz, 63.0 kHz, 70.0 Hz (D)
(II) MACH64(0): Modeline "576x432"x70.0   48.38  576 612 672 768  432 432 434 450 doublescan -hsync +vsync (63.0 kHz)
(**) MACH64(0): *Default mode "576x432": 40.8 MHz, 53.7 kHz, 60.1 Hz (D)
(II) MACH64(0): Modeline "576x432"x60.1   40.81  576 608 668 760  432 432 434 447 doublescan -hsync +vsync (53.7 kHz)
(**) MACH64(0): *Default mode "512x384": 39.4 MHz, 60.0 kHz, 75.0 Hz (D)
(II) MACH64(0): Modeline "512x384"x75.0   39.38  512 520 568 656  384 384 386 400 doublescan +hsync +vsync (60.0 kHz)
(**) MACH64(0): *Default mode "512x384": 37.5 MHz, 56.5 kHz, 70.1 Hz (D)
(II) MACH64(0): Modeline "512x384"x70.1   37.50  512 524 592 664  384 385 388 403 doublescan -hsync -vsync (56.5 kHz)
(**) MACH64(0): *Default mode "512x384": 32.5 MHz, 48.4 kHz, 60.0 Hz (D)
(II) MACH64(0): Modeline "512x384"x60.0   32.50  512 524 592 672  384 385 388 403 doublescan -hsync -vsync (48.4 kHz)
(**) MACH64(0): *Default mode "416x312": 28.6 MHz, 49.7 kHz, 74.7 Hz (D)
(II) MACH64(0): Modeline "416x312"x74.7   28.64  416 432 464 576  312 312 314 333 doublescan -hsync -vsync (49.7 kHz)
(**) MACH64(0): *Default mode "400x300": 24.8 MHz, 46.9 kHz, 75.1 Hz (D)
(II) MACH64(0): Modeline "400x300"x75.1   24.75  400 408 448 528  300 300 302 312 doublescan +hsync +vsync (46.9 kHz)
(**) MACH64(0): *Default mode "400x300": 25.0 MHz, 48.1 kHz, 72.2 Hz (D)
(II) MACH64(0): Modeline "400x300"x72.2   25.00  400 428 488 520  300 318 321 333 doublescan +hsync +vsync (48.1 kHz)
(**) MACH64(0): *Default mode "400x300": 20.0 MHz, 37.9 kHz, 60.3 Hz (D)
(II) MACH64(0): Modeline "400x300"x60.3   20.00  400 420 484 528  300 300 302 314 doublescan +hsync +vsync (37.9 kHz)
(**) MACH64(0): *Default mode "400x300": 18.0 MHz, 35.2 kHz, 56.3 Hz (D)
(II) MACH64(0): Modeline "400x300"x56.3   18.00  400 412 448 512  300 300 301 312 doublescan +hsync +vsync (35.2 kHz)
(**) MACH64(0): *Default mode "320x240": 15.8 MHz, 37.5 kHz, 75.0 Hz (D)
(II) MACH64(0): Modeline "320x240"x75.0   15.75  320 328 360 420  240 240 242 250 doublescan -hsync -vsync (37.5 kHz)
(**) MACH64(0): *Default mode "320x240": 15.8 MHz, 37.9 kHz, 72.8 Hz (D)
(II) MACH64(0): Modeline "320x240"x72.8   15.75  320 332 352 416  240 244 246 260 doublescan -hsync -vsync (37.9 kHz)
(**) MACH64(0): *Default mode "320x240": 12.6 MHz, 31.5 kHz, 60.1 Hz (D)
(II) MACH64(0): Modeline "320x240"x60.1   12.59  320 328 376 400  240 245 246 262 doublescan -hsync -vsync (31.5 kHz)
(**) MACH64(0): Display dimensions: (340, 270) mm
(**) MACH64(0): DPI set to (95, 96)
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/lib/xorg/modules/libfb.so
(II) Module fb: vendor="X.Org Foundation"
compiled for 1.7.6, module version = 1.0.0
ABI class: X.Org ANSI C Emulation, version 0.4
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Module "ramdac" already built-in
(II) Loading sub module "xaa"
(II) LoadModule: "xaa"
(II) Loading /usr/lib/xorg/modules/libxaa.so
(II) Module xaa: vendor="X.Org Foundation"
compiled for 1.7.6, module version = 1.2.1
ABI class: X.Org Video Driver, version 6.0
(II) Loading sub module "i2c"
(II) LoadModule: "i2c"
(II) Module "i2c" already built-in
(II) MACH64(0): I2C bus "Mach64" initialized.
(--) Depth 24 pixmap format is 32 bpp
(WW) MACH64(0): DRI static buffer allocation failed -- need at least 12800 kB video memory
(II) MACH64(0): Largest offscreen areas (with overlaps):
(II) MACH64(0): 1280 x 614 rectangle at 0,1024
(II) MACH64(0): 256 x 615 rectangle at 0,1024
(II) MACH64(0): Using XFree86 Acceleration Architecture (XAA)
Screen to screen bit blits
Solid filled rectangles
8x8 mono pattern filled rectangles
Indirect CPU to Screen color expansion
Solid Lines
Setting up tile and stipple cache:
20 128x128 slots
5 256x256 slots
(==) MACH64(0): Backing store disabled
(==) MACH64(0): Silken mouse enabled
(**) MACH64(0): DPMS enabled
(II) MACH64(0): Direct rendering disabled
(==) RandR enabled
(II) Initializing built-in extension Generic Event Extension
(II) Initializing built-in extension SHAPE
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension BIG-REQUESTS
(II) Initializing built-in extension SYNC
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XC-MISC
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) AIGLX: Screen 0 is not DRI2 capable
(II) AIGLX: Screen 0 is not DRI capable
(II) AIGLX: Loaded and initialized /usr/lib/dri/swrast_dri.so
(II) GLX: Initialized DRISWRAST GL provider for screen 0
(II) XKB: reuse xkmfile /var/lib/xkb/server-B20D7FC79C7F597315E3E501AEF10E0D866E8E92.xkm
(II) config/udev: Adding input device Power Button (/dev/input/event1)
(**) Power Button: Applying InputClass "evdev keyboard catchall"
(II) LoadModule: "evdev"
(II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
(II) Module evdev: vendor="X.Org Foundation"
compiled for 1.7.6, module version = 2.3.2
Module class: X.Org XInput Driver
ABI class: X.Org XInput driver, version 7.0
(**) Power Button: always reports core events
(**) Power Button: Device: "/dev/input/event1"
(II) Power Button: Found keys
(II) Power Button: Configuring as keyboard
(II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "pc105"
(**) Option "xkb_layout" "us"
(**) Option "xkb_variant" "basic"
(II) XKB: reuse xkmfile /var/lib/xkb/server-FA909DFBFFB6007765A9F4B3490F5D40DB9AB26E.xkm
(II) config/udev: Adding input device Power Button (/dev/input/event0)
(**) Power Button: Applying InputClass "evdev keyboard catchall"
(**) Power Button: always reports core events
(**) Power Button: Device: "/dev/input/event0"
(II) Power Button: Found keys
(II) Power Button: Configuring as keyboard
(II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "pc105"
(**) Option "xkb_layout" "us"
(**) Option "xkb_variant" "basic"
(II) config/udev: Adding input device HID 0461:4d09 (/dev/input/event4)
(**) HID 0461:4d09: Applying InputClass "evdev pointer catchall"
(**) HID 0461:4d09: always reports core events
(**) HID 0461:4d09: Device: "/dev/input/event4"
(II) HID 0461:4d09: Found 9 mouse buttons
(II) HID 0461:4d09: Found scroll wheel(s)
(II) HID 0461:4d09: Found relative axes
(II) HID 0461:4d09: Found x and y relative axes
(II) HID 0461:4d09: Configuring as mouse
(**) HID 0461:4d09: YAxisMapping: buttons 4 and 5
(**) HID 0461:4d09: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "HID 0461:4d09" (type: MOUSE)
(II) HID 0461:4d09: initialized for relative axes.
(II) config/udev: Adding input device HID 0461:4d09 (/dev/input/mouse1)
(II) No input driver/identifier specified (ignoring)
(II) config/udev: Adding input device cx88 IR (pcHDTV HD5500 HDTV) (/dev/input/event5)
(**) cx88 IR (pcHDTV HD5500 HDTV): Applying InputClass "evdev keyboard catchall"
(**) cx88 IR (pcHDTV HD5500 HDTV): always reports core events
(**) cx88 IR (pcHDTV HD5500 HDTV): Device: "/dev/input/event5"
(II) cx88 IR (pcHDTV HD5500 HDTV): Found keys
(II) cx88 IR (pcHDTV HD5500 HDTV): Configuring as keyboard
(II) XINPUT: Adding extended input device "cx88 IR (pcHDTV HD5500 HDTV)" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "pc105"
(**) Option "xkb_layout" "us"
(**) Option "xkb_variant" "basic"
(II) config/udev: Adding input device cx88 IR (Hauppauge WinTV-HVR400 (/dev/input/event6)
(**) cx88 IR (Hauppauge WinTV-HVR400: Applying InputClass "evdev keyboard catchall"
(**) cx88 IR (Hauppauge WinTV-HVR400: always reports core events
(**) cx88 IR (Hauppauge WinTV-HVR400: Device: "/dev/input/event6"
(II) cx88 IR (Hauppauge WinTV-HVR400: Found keys
(II) cx88 IR (Hauppauge WinTV-HVR400: Configuring as keyboard
(II) XINPUT: Adding extended input device "cx88 IR (Hauppauge WinTV-HVR400" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "pc105"
(**) Option "xkb_layout" "us"
(**) Option "xkb_variant" "basic"
(II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event3)
(**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
(**) AT Translated Set 2 keyboard: always reports core events
(**) AT Translated Set 2 keyboard: Device: "/dev/input/event3"
(II) AT Translated Set 2 keyboard: Found keys
(II) AT Translated Set 2 keyboard: Configuring as keyboard
(II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "pc105"
(**) Option "xkb_layout" "us"
(**) Option "xkb_variant" "basic"
(II) config/udev: Adding input device Macintosh mouse button emulation (/dev/input/event2)
(**) Macintosh mouse button emulation: Applying InputClass "evdev pointer catchall"
(**) Macintosh mouse button emulation: always reports core events
(**) Macintosh mouse button emulation: Device: "/dev/input/event2"
(II) Macintosh mouse button emulation: Found 3 mouse buttons
(II) Macintosh mouse button emulation: Found relative axes
(II) Macintosh mouse button emulation: Found x and y relative axes
(II) Macintosh mouse button emulation: Configuring as mouse
(**) Macintosh mouse button emulation: YAxisMapping: buttons 4 and 5
(**) Macintosh mouse button emulation: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
(II) XINPUT: Adding extended input device "Macintosh mouse button emulation" (type: MOUSE)
(II) Macintosh mouse button emulation: initialized for relative axes.
(II) config/udev: Adding input device Macintosh mouse button emulation (/dev/input/mouse0)
(II) No input driver/identifier specified (ignoring)

How can I disable the 'chipset detection' during bootup and get avwizard to successfully run (or bypass avwizard)?

Dennis

« Last Edit: March 24, 2012, 03:11:48 pm by ardirtbiker »

phenigma

  • LinuxMCE God
  • ****
  • Posts: 1758
    • View Profile
Re: VIDEO CARDS: ATI, Intel, VIA... whatever you got...
« Reply #40 on: March 24, 2012, 06:39:16 pm »
phenigma... that should absolutely not be occurring anymore.

My bad, adding the virtualbox driver I missed the test for detected driver equaling current driver which prevented the AVWizard override from being set.  I've caught it now.  Everything is working great!  I spent last night updating my 1004 builder to current svn and I'll submit the code addition I'm using to detect the virtualbox video driver.

J.

JaseP

  • Addicted
  • *
  • Posts: 526
    • View Profile
    • JaseP's LinuxMCE Wiki User page
Re: VIDEO CARDS: ATI, Intel, VIA... whatever you got...
« Reply #41 on: March 25, 2012, 08:47:26 pm »
By the way,...

Video interface is working in the core:

Del Inspiron 530
4GB RAM, 320GB HD, Intel GMA3100 series graphics (G33/G31 chipset)
UI2 + Alpha
Complete LSPCI output:
See my User page on the LinuxMCE Wiki for a description of my system configuration (click the little globe under my profile pic).

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: VIDEO CARDS: ATI, Intel, VIA... whatever you got...
« Reply #42 on: March 26, 2012, 05:34:56 am »
For those of you caught in the vesa loop... update pluto-boot-scripts. That will likely fix you. Sorry for the confusion... I hadn't uploaded a fix I had on my local system.
I never quit... I just ping out.

ardirtbiker

  • Guru
  • ****
  • Posts: 308
    • View Profile
Re: VIDEO CARDS: ATI, Intel, VIA... whatever you got...
« Reply #43 on: March 28, 2012, 01:22:25 am »
okay..  I was adding additional items to the video detection section of Utils.sh (added new item for ATI driver 'ati' and 'mach64')   on bootup, the system identifies my display as requiring the 'ati' driver (identified in yellow text)... but continues to flicker... unable to launch AVWizard.. non-stop I might add



If i put a valid xorg.conf file in /etc/X11 on bootup there is the yellow text stating the 'ati' driver IS installed... but still cannot either run AVWizard or the orbiter... however I may sometimes get a 'cannot configure X' screen (or something along those lines).


For now, I have to kill all the AVWizard and X -config programs and then launch startx to get into myth setup (my dvb cards are in my core)

Any suggestions on how to get my orbiter working again or get the AVWizard to launch correctly?

Dennis

l3mce

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1084
    • View Profile
Re: VIDEO CARDS: ATI, Intel, VIA... whatever you got...
« Reply #44 on: March 28, 2012, 05:27:40 pm »
ardirtbiker: There is also a radeon r128 driver out there. I am currently looking at how xserver-xorg-video-ati figures out and applies radeon/r128/mach64 driver based on the pci info. I should have a solution soon.

*Please try this Utils.sh
Code: [Select]
#!/bin/bash

if [[ -n "$HEADER_Utils" ]]; then
    return 0
fi
HEADER_Utils=included

. /usr/pluto/bin/SQL_Ops.sh
. /usr/pluto/bin/Config_Ops.sh

DEVICETEMPLATE_OnScreen_Orbiter=62
DEVICEDATA_Use_OpenGL_effects=172
DEVICEDATA_Use_alpha_blended_UI=169
DEVICEDATA_PK_UI=104

function AddBookmark {
    return 0
    Url="$1"
    Name="$2"

    [[ ! -f /home/public/bookmarks.html ]] || return 0

    # Generate an id for this bookmark
    ID=$(echo "$Url" | sha1sum)
    ID='rdf:#$'${ID:0:6}

    # Generate the bookmark entry
    Bookmark='   <DT><A HREF="'$Url'" ADD_DATE="1126869382" LAST_MODIFIED="1126869442" ID="'$ID'">'$Name'</A>'
    Bookmark=$(echo $Bookmark | sed 's/"/\\\"/g')

    for BookmarksFile in /home/public/bookmarks.html /home/user_*/bookmarks.html ;do
        # See if the bookmark is already there
        if grep -q "ID=\"$ID\"" $BookmarksFile ;then
            continue
        fi

        # Add the bookmark string to the file
        awk '
            BEGIN { HR=0 }
            HR==0 && /<HR>/ {print "'"$Bookmark"'"; HR=1}
            {print}
        ' $BookmarksFile > $BookmarksFile.$$
        mv $BookmarksFile.$$ $BookmarksFile
    done

}

function DelBookmark {
    return 0
    Url="$1"
    Name="$2"

    [[ ! -f /home/public/bookmarks.html ]] || return 0

    # Generate an id for this bookmark
    ID=$(echo "$Url" | sha1sum)
    ID='rdf:#$'${ID:0:6}
   
    for BookmarksFile in /home/public/bookmarks.html /home/user_*/bookmarks.html ;do
        grep -v "ID=\"$ID\"" $BookmarksFile >> $BookmarksFile.$$
        mv $BookmarksFile.$$ $BookmarksFile
    done
}

TranslateSerialPort()
{
    local SearchFor="$1"
    local PCI USB

    SerialPort=
    if [[ "$SearchFor" == pci* ]]; then
        if [[ -d /sys/class/tty ]]; then
            pushd /sys/class/tty &>/dev/null
            for dev in ttyUSB*/device ttyACM*/device; do
                id=$(readlink -f "$dev" | sed -r 's,^.*(pci.*)/usb[0-9]*/[0-9./-]*/[0-9]*-([0-9.]*):[0-9.]*(/ttyUSB[0-9]*)?$,\1+\2,g')
                if [[ "$id" == "$SearchFor" ]]; then
                    SerialPort="/dev/$(dirname "$dev")"
                    break;
                fi
            done
            popd &>/dev/null
        fi
    else
        SerialPort="$SearchFor"
    fi

    builtin echo "$SerialPort"
}

TranslateSoundCard()
{
    local SoundCard="$1" AlsaCard=
    local PCI USB
    local Cards Card Dev

    if [[ -d /sys/class/sound && "$SoundCard" == pci* ]]; then
        if [[ "$SoundCard" == *+* ]]; then
            PCI="${SoundCard%+*}"
            USB="${SoundCard#*+}"
        else
            PCI="${SoundCard}"
            USB=
        fi
        pushd /sys/class/sound &>/dev/null
        Cards=$(find -name 'controlC*')
        for Card in $Cards; do
            Card="${Card#./}"
            Dev=$(readlink "$Card/device"|cut -f3 -d/)
            if [[ -n "$USB" ]]; then
                if [[ "$Dev" == *"$PCI"*usb*"$USB:"* ]]; then
                    AlsaCard="${Card#controlC}"
                    break
                fi
            else
                if [[ "$PCI" == *"$Dev" ]]; then
                    AlsaCard="${Card#controlC}"
                    break
                fi
            fi
        done
        popd &>/dev/null
    fi

    builtin echo "$AlsaCard"
}

UseAlternativeLibs()
{
    export LD_LIBRARY_PATH=/opt/libsdl/lib:/opt/libxine/lib:/opt/libsdl1.2-1.2.7+1.2.8cvs20041007/lib:/opt/linphone-1.3.5/lib
}

function ListTemplates_Category {
    local FK_DeviceCategory_Parent="$1"
    local PK_DeviceTemplate_List=""
    local PK_DeviceCategory=""
    local PK_DeviceTemplate=""

    R=$(RunSQL "SELECT PK_DeviceCategory FROM DeviceCategory WHERE FK_DeviceCategory_Parent = $FK_DeviceCategory_Parent")
    for PK_DeviceCategory in $R ;do
        PK_DeviceTemplate_List="$PK_DeviceTemplate_List $(ListTemplates_Category "$PK_DeviceCategory")"
    done

    R=$(RunSQL "SELECT PK_DeviceTemplate FROM DeviceTemplate WHERE FK_DeviceCategory=$FK_DeviceCategory_Parent")
    for PK_DeviceTemplate in $R ;do
        PK_DeviceTemplate_List="$PK_DeviceTemplate_List $PK_DeviceTemplate"
    done

    echo $PK_DeviceTemplate_List
}


FindDevice_Template()
{
    local PK_Device_Parent="${1//\'}" FK_DeviceTemplate="${2//\'}" NoRecursion="$3" IncludeParent="$4" All="$5"
    local Limit Found=0

    if [[ -z "$PK_Device_Parent" || -z "$FK_DeviceTemplate" ]]; then
        echo ""
        return 1
    fi

    if [[ -z "$All" ]]; then
        Limit="LIMIT 1"
    fi

    local i R Q
    if [[ "$PK_Device_Parent" == 0 ]]; then
        Q="
            SELECT PK_Device
            FROM Device
            WHERE FK_Device_ControlledVia IS NULL AND FK_DeviceTemplate IN ($FK_DeviceTemplate)
            $Limit
        "
    elif [[ -z "$IncludeParent" ]]; then
        Q="
            SELECT PK_Device
            FROM Device
            WHERE FK_Device_ControlledVia='$PK_Device_Parent' AND FK_DeviceTemplate IN ($FK_DeviceTemplate)
            $Limit
        "
    else
        Q="
            SELECT PK_Device
            FROM Device
            WHERE (FK_Device_ControlledVia='$PK_Device_Parent' OR PK_Device='$PK_Device_Parent') AND FK_DeviceTemplate IN ($FK_DeviceTemplate))
            $Limit
        "
    fi
    R="$(RunSQL "$Q")"

    if [[ -n "$R" ]]; then
        echo "$R"
    fi

    if [[ ( -z "$R" || -n "$All" ) && -z "$NoRecursion" ]]; then
        Q="SELECT PK_Device FROM Device WHERE FK_Device_ControlledVia='$PK_Device_Parent'"
        R="$(RunSQL "$Q")"
        for i in $R; do
            if FindDevice_Template "$i" "$FK_DeviceTemplate" "" "" "$All"; then
                if [[ -z "$All" ]]; then
                    return 0
                else
                    Found=1
                fi
            fi
        done
    else
        return 1
    fi

    [[ "$Found" -eq 1 ]]
    return $?
}

FindDevice_Category()
{
    local PK_Device_Parent="${1//\'}" FK_DeviceCategory="${2//\'}" NoRecursion="$3" IncludeParent="$4" All="$5"
    local Limit Found=0

    if [[ -z "$PK_Device_Parent" || -z "$FK_DeviceCategory" ]]; then
        echo ""
        return 1
    fi

    if [[ -z "$All" ]]; then
        Limit="LIMIT 1"
    fi

    local i R Q
    if [[ "$PK_Device_Parent" == 0 ]]; then
        Q="
            SELECT PK_Device
            FROM Device
            JOIN DeviceTemplate ON FK_DeviceTemplate=PK_DeviceTemplate
            WHERE FK_Device_ControlledVia IS NULL AND FK_DeviceCategory IN ($FK_DeviceCategory)
            $Limit
        "
    elif [[ -z "$IncludeParent" ]]; then
        Q="
            SELECT PK_Device
            FROM Device
            JOIN DeviceTemplate ON FK_DeviceTemplate=PK_DeviceTemplate
            WHERE FK_Device_ControlledVia='$PK_Device_Parent' AND FK_DeviceCategory IN ($FK_DeviceCategory)
            $Limit
        "
    else
        Q="
            SELECT PK_Device
            FROM Device
            JOIN DeviceTemplate ON FK_DeviceTemplate=PK_DeviceTemplate
            WHERE (FK_Device_ControlledVia='$PK_Device_Parent' OR PK_Device='$PK_Device_Parent') AND FK_DeviceCategory IN ($FK_DeviceCategory)
            $Limit
        "
    fi
    R="$(RunSQL "$Q")"

    if [[ -n "$R" ]]; then
        echo "$R"
    fi

    if [[ ( -z "$R" || -n "$All" ) && -z "$NoRecursion" ]]; then
        Q="SELECT PK_Device FROM Device WHERE FK_Device_ControlledVia='$PK_Device_Parent'"
        R="$(RunSQL "$Q")"
        for i in $R; do
            if FindDevice_Category "$i" "$FK_DeviceCategory" "" "" "$All"; then
                if [[ -z "$All" ]]; then
                    return 0
                else
                    Found=1
                fi
            fi
        done
    else
        return 1
    fi

    [[ "$Found" -eq 1 ]]
    return $?
}

# Get the device number for the parent of the given device
# Returns: number or empty string
GetDeviceParent()
{
    local PK_Device="$1"
    Q="
        SELECT FK_Device_ControlledVia
        FROM Device
        WHERE PK_Device='$PK_Device'
    "
    local R=$(RunSQL "$Q")
   
    if [[ "$R" == NULL ]]; then
        R=""
    fi
    echo "$R"
}

# Delete a device and make its children top level
# Does exactly the same thing as CMD_Delete_Device in General_Info_Plugin
DeleteDevice()
{
    local PK_Device="$1"
    local Q R

    # Delete embedded devices
    Q="SELECT PK_Device FROM Device where FK_Device_RouteTo=$PK_Device"
    R=$(RunSQL "$Q")
    for Device in $R; do
        DeleteDevice "$Device"
    done

    local -a Queries
    Queries=(
        "UPDATE Device SET FK_Device_ControlledVia=NULL WHERE FK_Device_ControlledVia=$PK_Device"
        "DELETE FROM Device WHERE PK_Device=$PK_Device"
        "DELETE FROM CommandGroup_Command WHERE FK_Device=$PK_Device"
        "DELETE FROM Device_Command WHERE FK_Device=$PK_Device"
        "DELETE FROM Device_CommandGroup WHERE FK_Device=$PK_Device"
        "DELETE FROM Device_DeviceData WHERE FK_Device=$PK_Device"
        "DELETE FROM Device_DeviceGroup WHERE FK_Device=$PK_Device"
        "DELETE FROM Device_Device_Related WHERE FK_Device=$PK_Device OR FK_Device_Related=$PK_Device"
        "DELETE FROM Device_EntertainArea WHERE FK_Device=$PK_Device"
        "DELETE FROM Device_HouseMode WHERE FK_Device=$PK_Device"
        "DELETE FROM Device_Orbiter WHERE FK_Device=$PK_Device"
        "DELETE FROM Device_StartupScript WHERE FK_Device=$PK_Device"
        "DELETE FROM Device_Users WHERE FK_Device=$PK_Device"
        "DELETE FROM Package_Device WHERE FK_Device=$PK_Device"
        "DELETE FROM PaidLicense WHERE FK_Device=$PK_Device"
        "DELETE FROM Device_Device_Pipe WHERE FK_Device_From=$PK_Device OR FK_Device_To=$PK_Device"
        "DELETE FROM PaidLicense WHERE FK_Device=$PK_Device"
    )

    for Q in "${Queries[@]}"; do
        RunSQL "$Q"
    done
}

XineConfSet()
{
    local Setting="$1"
    local Value="$2"
    local XineConf="${3:-/etc/pluto/xine.conf}"
   
    [[ -z "$Setting" || -z "$Value" ]] && return 1
   
    if grep -qF "$Setting" "$XineConf"; then
        sed -i "s/^.*$Setting:.*$/$Setting:$Value/" "$XineConf"
    else
        echo "$Setting:$Value" >>"$XineConf"
    fi
}

DeviceIsDisabled()
{
    local PK_Device="$1"
    local R Q

    [[ -z "$PK_Device" ]] && return 1

    Q="SELECT COUNT(*) FROM Device WHERE PK_Device='$PK_Device' AND Disabled=0"
    R=$(RunSQL "$Q")

    if [[ -n "$R" && "$R" -eq 0 ]]; then
        return 0 # Device is disabled or does not exist at all
    else
        return 1 # Device exists and is enabled
    fi
}

FindInArray()
{
    local Value="$1" Array i
    shift
    Array=("$@")
   
    for ((i = 0; i < ${#Array[*]}; i++)); do
        if [[ "${Array[$i]}" == "$Value" ]]; then
            echo "$i"
            return 0
        fi
    done
    return 1
}

FindInArray_Prefix()
{
    local Value="$1" Array i
    shift
    Array=("$@")

    for ((i = 0; i < ${#Array[*]}; i++)); do
        if [[ "${Array[$i]}" == "$Value"* ]]; then
            echo "$i"
            return 0
        fi
    done
    return 1
}

# Verify that the given string is a valid IPv4
ValidIP()
{
    local IP="$1"

    local IPn="[0-9]{1,3}"
    local IPpattern="^($IPn)\\.($IPn)\\.($IPn)\\.($IPn)$"
    local i Number

    # Bash 3.1 requires $IPpattern to be quoted, otherwise it gives a syntax error
    # Bash 3.2 requires $IPpattern to be unquoted, otherwise it fails to match the pattern
    # Ubuntu has Bash 3.2
    if [[ ! "$IP" =~ $IPpattern ]]; then
        return 1
    fi

    for ((i = 1; i <= 4; i++)); do
        Number="${BASH_REMATCH[$i]}"
        if ((Number < 0 || Number > 255)); then
            return 1
        fi
    done

    return 0
}

# Colors and bolds messages
# '\E begin escape sequence
# [XX; is the text color
# XXm' is the background color
# \033 is the an escape
# [1m bold     [0m unbold
# "" around text   '' around color
# COLOR         FOREGROUND      BACKGROUND
# black         30              40
# red           31              41
# green         32              42
# yellow        33              43
# blue          34              44
# magenta       35              45
# cyan          36              46
# white         37              47

StatusMessage () {
    echo -e '\E[33;40m'"\033[1m  $* \033[0m"
}
ErrorMessage () {
    echo -e '\E[33;41m'"\033[1m  $* \033[0m"
}
NotifyMessage () {
    echo -e '\E[32;40m'"\033[1m  $* \033[0m"
}

confirmRoot () {
    testroot="`whoami`"
    if [ "$testroot" != "root" ]; then
        ErrorMessage "Need to be root to run. Exiting"
        exit 1
    fi
}

StartService() {
ServiceDescription="$1"
ServiceCmd="$2"
ServiceBkg="$3"
    if [[ -x $(echo $ServiceCmd | cut -d ' ' -f1) ]] ;then
        if [ -x /bin/plymouth ]; then
            /bin/plymouth update --status="$ServiceDescription ... "
        fi
        echo -n "$ServiceDescription ... "
            if [[ "$ServiceBkg" == "&" ]] ;then
                $ServiceCmd 1>/dev/null 2>/dev/null &
            else
                $ServiceCmd 1>/dev/null 2>/dev/null
            fi
            err=$?
            if [[ "$err" == "0" ]] ;then
                echo "ok"
            else
                echo "fail"
            fi
    fi
        return $err
}

GetVideoDriver () {
        vga_pci=$(lspci -v | grep -i 'VGA')
        prop_driver="vesa"
        chip_man=$(echo "$vga_pci" | grep -Eo '(ATI|VIA|nVidia|Intel)')
        case $chip_man in
                nVidia)
            if ping -c 1 google.com; then
                prop_driver="nvidia" 
            else
                prop_driver="nouveau"
            fi ;;

                ATI)
                        prop_driver="fglrx"
                        if echo $vga_pci | grep -Ei '(r5|r6|r7)'; then
                                prop_driver="radeonhd"; fi
                        if echo "$vga_pci" | grep -E '((9|X|ES)(1|2?)([0-9])(5|0)0|Xpress)'; then
                                prop_driver="radeon"; fi
                        if echo $vga_pci | grep -i "Rage" | grep "128"; then
                                prop_driver="r128"; fi
                        if echo $vga_pci | grep -i "Rage"; then
                                prop_driver="mach64"; fi ;;

                Intel)
                        prop_driver="intel"
                        if echo $vga_pci | grep "i740"; then
                                prop_driver="i740"; fi
                        if echo $vga_pci | grep "i128"; then
                                prop_driver="i128"; fi ;;

                VIA)
                        prop_driver="openchrome" ;
                        if echo $vga_pci | grep -i "Savage"; then
                                prop_driver="savage"; fi
#                       if echo $vga_pci | grep -i "s3"; then
#                               prop_driver="via"; fi
                        if echo $vga_pci | grep -i "virge"; then
                                prop_driver="virge"; fi ;;
        *)
            prop_driver="vesa"
        esac

}

InstallVideoDriver () {
    GetVideoDriver
    case "$prop_driver" in
            nvidia)
            if ! PackageIsInstalled nvidia-glx && ! PackageIsInstalled nvidia-glx-new && ! PackageIsInstalled nvidia-glx-71 && ! PackageIsInstalled nvidia-glx-96 && ! PackageIsInstalled nvidia-glx-173 && ! PackageIsInstalled nvidia-glx-180 && ! PackageIsInstalled nvidia-glx-190 && ! PackageIsInstalled nvidia-glx-195 && ! PackageIsInstalled nvidia-glx-260 && ! PackageIsInstalled nvidia-glx-185 && ! PackageIsInstalled nvidia-current && ping -c 1 google.com; then
                apt-get -yf install pluto-nvidia-video-drivers
                VerifyExitCode "Install Pluto nVidia Driver"
                nv_pid=$(pidof nvidia-install.sh)
                    if [[ -n $nv_pid ]] ; then
                        StatusMessage "Installing nVidia driver this may take a few minutes"
                        installCorrectNvidiaDriver
                    else StartService "Installing nVidia driver this may take a few minutes" ". /usr/pluto/bin/nvidia-install.sh"
                        installCorrectNvidiaDriver
                    fi
            else
                apt-get -yf install xserver-xorg-video-nouveau
                VerifyExitCode "Install nouveau Driver"
                prop_driver="nouveau"
            fi ;;
        radeon)
            if ! PackageIsInstalled xserver-xorg-video-radeon; then
                apt-get -yf install xserver-xorg-video-radeon
                VerifyExitCode "Install radeon Driver"
            fi ;;
        mach64)
            if ! PackageIsInstalled xserver-xorg-video-mach64; then
                apt-get -yf install xserver-xorg-video-mach64
                VerifyExitCode "Install mach64 Driver"
            fi ;;
        r128)
            if ! PackageIsInstalled xserver-xorg-video-mach64; then
                apt-get -yf install xserver-xorg-video-r128
                VerifyExitCode "Install r128 Driver"
            fi ;;
        fglrx)
            if ! PackageIsInstalled fglrx && ping -c 1 google.com; then
                apt-get -yf install fglrx
                VerifyExitCode "Install fglrx Driver"
            else
                apt-get -yf install xserver-xorg-video-radeon
                VerifyExitCode "Install radeon Driver"
                prop_driver="radeon"
            fi ;;
        radeonhd)
            if ! PackageIsInstalled xserver-xorg-video-radeonhd; then
                apt-get -yf install xserver-xorg-video-radeonhd
                VerifyExitCode "Install radeonhd Driver"
            fi ;;
        intel)
            if ! PackageIsInstalled xserver-xorg-video-intel; then
                apt-get -yf install xserver-xorg-video-intel
                VerifyExitCode "Install Intel Driver"
            fi ;;
        i128)
            if ! PackageIsInstalled xserver-xorg-video-i128; then
                apt-get -yf install xserver-xorg-video-i128
                VerifyExitCode "Install i128 Driver"
            fi ;;
        i740)
            if ! PackageIsInstalled xserver-xorg-video-i740; then
                apt-get -yf install xserver-xorg-video-i740
                VerifyExitCode "Install i740 Driver"
            fi ;;
        openchrome)
            if ! PackageIsInstalled xserver-xorg-video-openchrome; then
                apt-get -yf install xserver-xorg-video-openchrome
                VerifyExitCode "Install opencrhome Driver"
            fi ;;
        savage)
            if ! PackageIsInstalled xserver-xorg-video-savage && ping -c 1 google.com; then
                apt-get -yf install xserver-xorg-video-savage
                VerifyExitCode "Install VIA Savage Driver"
            else prop_driver="openchrome"
            fi ;;
        via)
            if ! PackageIsInstalled xserver-xorg-video-s3; then
                apt-get -yf install xserver-xorg-video-s3
                VerifyExitCode "Install VIA S3 Driver"
            fi ;;
        virge)
            if ! PackageIsInstalled xserver-xorg-video-s3virge && ping -c 1 google.com; then
                apt-get -yf install xserver-xorg-video-s3virge
                VerifyExitCode "Install VIA S3 Virge Driver"
            else prop_driver="openchrome"
            fi ;;
                esac
    if [[ "$chip_man" == "Intel" ]] && ping -c 1 google.com; then
        if ! PackageIsInstalled "libva-driver-i965" && ping -c 1 google.com; then
            apt-get -yf install libva-driver-i965
            VerifyExitCode "Install Intel Graphics Accelerator"
        fi
    fi
VideoDriver="$prop_driver"
}

CheckVideoDriver () {
    GetVideoDriver
    if [[ -f /etc/X11/xorg.conf ]]; then
        # TODO figure out a better way to isolate the video driver in the xorg.conf list of "Driver" options
            cur_driver=$(grep "Driver" /etc/X11/xorg.conf | grep -Eo '(nvidia|radeon|radeonhd|fglrx|savage|openchrome|via|virge|intel|i740|i128|vesa)')
                card_detail=$(lspci | grep 'VGA' | cut -d':' -f3)
        # Check to see that the appropriate driver is installed by type
                if [[ "$prop_driver" != "$cur_driver" ]]; then
            driver_match="no"
        else
            driver_match="yes"
        fi
        # If current driver is nvidia, check that it is the correct one
        if [[ "$driver_match" == "yes" ]] && [[ "$cur_driver" == "nvidia" ]]; then
            StartService "Checking nVidia driver" ". /usr/pluto/bin/nvidia-install.sh"
            current_nvidia=$(getInstalledNvidiaDriver)
            preferred_nvidia=$(getPreferredNvidiaDriver)
            if [[ "$current_nvidia" != "$preferred_nvidia" ]]; then
                driver_match="no"
            fi
        fi
        # remove fglrx or nVidia drivers if they are installed, but do not match current requirements
                if [[ "$driver_match" == "no" ]]; then
                        ErrorMessage "Video chipset change detected !!!"
            if [[ "$cur_driver" == "fglrx" ]]; then
                echo ""
                echo ""
                echo ""
                ErrorMessage "Purging fglrx driver due to multiple conflicts"
                apt-get -y remove --purge xorg-driver-fglrx fglrx* --force-yes
                apt-get -y install --reinstall libgl1-mesa-glx libgl1-mesa-dri fglrx-modaliases --force-yes
                dpkg-reconfigure xserver-xorg
                apt-get -y install --reinstall xserver-xorg-core --force-yes
                rm /etc/X11/xorg.conf
                reboot
                exit 0
            elif [[ $cur_driver == "nvidia" ]]; then
                StatusMessage "Removing old nVidia driver"
                apt-get -yf remove $current_driver --force-yes
            fi
            # If there is an xorg, but the driver does not match best selection, install driver and run AVWizard
                        StatusMessage "Installing video driver '$prop_driver' for $card_detail"
            InstallVideoDriver
                        ConfSet "AVWizardOverride" "1"
                else
            StatusMessage "Correct driver '$prop_driver' already loaded"
                fi
        else
        # If there is no xorg.conf, install driver and run AVWizard
        StatusMessage "Installing video driver '$prop_driver' for $card_detail"
        InstallVideoDriver
        ConfSet "AVWizardOverride" "1"
        fi
}

ReloadDevicesOnThisMachine()
{
    for Dev in $(cat /usr/pluto/locks/pluto_spawned_local_devices.txt); do
        /usr/pluto/bin/MessageSend "$DCERouter" 0 "$Dev" 7 1 163 "Utils.sh ReloadDevicesOnThisMachine"
    done
}

OpenGLeffects()
{
    local Q

    Q="
        SELECT IK_DeviceData
        FROM Device
        LEFT JOIN Device AS Parent ON Parent.PK_Device=Device.FK_Device_ControlledVia
        JOIN Device_DeviceData ON Device.PK_Device=FK_Device
        WHERE
            Device.FK_DeviceTemplate='$DEVICETEMPLATE_OnScreen_Orbiter'
            AND (
                Device.FK_Device_ControlledVia='$PK_Device'
                OR Parent.FK_Device_ControlledVia='$PK_Device'
            )
        AND FK_DeviceData='$DEVICEDATA_Use_OpenGL_effects'
    "
    RunSQL "$Q"
}

AlphaBlendingEnabled()
{
    local Q

    Q="
        SELECT IK_DeviceData
        FROM Device
        LEFT JOIN Device AS Parent ON Parent.PK_Device=Device.FK_Device_ControlledVia
        JOIN Device_DeviceData ON Device.PK_Device=FK_Device
        WHERE
            Device.FK_DeviceTemplate='$DEVICETEMPLATE_OnScreen_Orbiter'
            AND (
                Device.FK_Device_ControlledVia='$PK_Device'
                OR Parent.FK_Device_ControlledVia='$PK_Device'
            )
        AND FK_DeviceData='$DEVICEDATA_Use_alpha_blended_UI'
    "
    RunSQL "$Q"
}

GetDeviceData()
{
    local Q
    local Device="$1" DeviceData="$2"

    Q="
        SELECT IK_DeviceData
        FROM Device_DeviceData
        WHERE FK_Device='$Device' AND FK_DeviceData='$DeviceData'
    "
    Field 1 "$(RunSQL "$Q")"
}

SetDeviceData()
{
    local Q
    local Device="$1" DeviceData="$2" Value="$3"

    Q="
        UPDATE Device_DeviceData
        SET IK_DeviceData='$Value'
        WHERE FK_Device=$Device AND FK_DeviceData=$DeviceData
    "
    RunSQL "$Q"
}

UI_SetOptions()
{
    local OrbiterDev="$1"
    local OpenGLeffects="$2"
    local AlphaBlending="$3"
    local UI_Version="$4"

    # disable OpenGL effects
    Q="
        REPLACE INTO Device_DeviceData(FK_Device, FK_DeviceData, IK_DeviceData)
        VALUES('$OrbiterDev', '$DEVICEDATA_Use_OpenGL_effects', '$OpenGLeffects')
    "
    RunSQL "$Q"
    # disable alpha blending
    Q="
        REPLACE INTO Device_DeviceData(FK_Device, FK_DeviceData, IK_DeviceData)
        VALUES('$OrbiterDev', '$DEVICEDATA_Use_alpha_blended_UI', '$AlphaBlending')
    "
    RunSQL "$Q"
    # select UI
    Q="
        REPLACE INTO Device_DeviceData(FK_Device, FK_DeviceData, IK_DeviceData)
        VALUES('$OrbiterDev', '$DEVICEDATA_PK_UI', '$UI_Version')
    "
    RunSQL "$Q"
}

function GeneratePassword() {
    #TODO: Replace with this --->  </dev/urandom tr -dc A-Za-z0-9_ | head -c8
        local -a alpha1=(Q W E R T Y U I O P A S D F G H J K L Z X C V B N M)
        local -a alpha2=(q w e r t y u i o p a s d f g h j k l z x c v b n m)
        local -a alpha3=(1 2 3 4 5 6 7 8 9 0)

        local pass=""
        pass=$pass"${alpha1[$(($RANDOM%26))]}${alpha1[$(($RANDOM%26))]}${alpha1[$(($RANDOM%26))]}"
        pass=$pass"${alpha2[$(($RANDOM%26))]}${alpha2[$(($RANDOM%26))]}${alpha2[$(($RANDOM%26))]}"
        pass=$pass"${alpha3[$(($RANDOM%10))]}${alpha3[$(($RANDOM%10))]}"

        local fromwhere=$(( $RANDOM % 3 + 1 ))
        [[ $fromwhere == 1 ]] && pass=$pass"${alpha1[$(($RANDOM%26))]}"
        [[ $fromwhere == 2 ]] && pass=$pass"${alpha2[$(($RANDOM%26))]}"
        [[ $fromwhere == 3 ]] && pass=$pass"${alpha3[$(($RANDOM%10))]}"


        for i in `seq 1 100` ;do
                local split=$(( $RANDOM % ${#pass} + 1 ))
                pass1=${pass:$split}
                pass2=${pass:0:$split}
                pass="${pass1}${pass2}"
        done

        echo $pass
}

function GeneratePasswordOf6Digits()
{
    local pass
    for ((i = 0; i < 6; i++)); do
        pass="${pass}$((RANDOM % 10))"
    done
    echo "$pass"
}

Log()
{
    local File="$1"; shift
    local Msg="$*"

    echo "LOG: $Msg"
    echo "$Msg" >>"$File"
}


function BlacklistConfFiles()
{
    local file=$1

    if [[ -e /etc/confblacklist ]] ;then
        while read line; do
            if [[ "$line" == "$file" ]] ;then
                return 0
            fi
        done < /etc/confblacklist
    fi

    return 1               
}

function VDRInstalled() {
    # Return true if VDR is installed
    DEVICETEMPLATE_VDR_Plugin="1704"
    Q="SELECT PK_Device FROM Device Where FK_DeviceTemplate = $DEVICETEMPLATE_VDR_Plugin"
    VDRDevice=$(RunSQL "$Q")                                         
    if [ "$VDRDevice" == "" ] ; then                                 
        RETURNVALUE=1                                             
    else                                                             
        RETURNVALUE=0                                             
    fi                                                               
    return $RETURNVALUE
}
« Last Edit: March 28, 2012, 05:39:52 pm by l3mce »
I never quit... I just ping out.