Re: [gentoo-user] Blank screen in X, no errors in Xorg.log

2011-10-03 Thread Adam Carter
FYI, this is fixed. I ran 'strace startx  startx.strace.out 21' and
this showed;
/usr/bin/X: symbol lookup error:
/usr/lib64/xorg/modules/drivers/fglrx_drv.so: undefined symbol:
GlxInitVisuals2D

Which means that i forget to eselect opengl set 1, though it wasn't
logged to Xorg.0.log (so it was logged to STDOUT, but i couldn't see
that as the screen was blank).

Then after fixing that;
which: no keychain in
(/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3)
/etc/X11/xinit/xinitrc: line 63: exec: xterm: not found
/etc/X11/xinit/xinitrc: line 61: xterm: command not found
xinit: connection to X server lost

So i emerged keychain and xterm and it now works. Of course i didn't
need xterm as i'm running gnome, so i could have just kicked that off
instead.



Re: [gentoo-user] Blank screen in X, no errors in Xorg.log

2011-10-03 Thread Spidey
On Mon, Oct 3, 2011 at 19:01, Adam Carter adamcart...@gmail.com wrote:

 FYI, this is fixed. I ran 'strace startx  startx.strace.out 21' and
 this showed;
 /usr/bin/X: symbol lookup error:
 /usr/lib64/xorg/modules/drivers/fglrx_drv.so: undefined symbol:
 GlxInitVisuals2D

 Which means that i forget to eselect opengl set 1, though it wasn't
 logged to Xorg.0.log (so it was logged to STDOUT, but i couldn't see
 that as the screen was blank).

 Then after fixing that;
 which: no keychain in

 (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3)
 /etc/X11/xinit/xinitrc: line 63: exec: xterm: not found
 /etc/X11/xinit/xinitrc: line 61: xterm: command not found
 xinit: connection to X server lost

 So i emerged keychain and xterm and it now works. Of course i didn't
 need xterm as i'm running gnome, so i could have just kicked that off
 instead.


The default xinitrc or something starts twm, xterm and xclock or something
like that, that's normal behavior for first time X.org users. You can toggle
that to your needs, or you emerge gnome and add gdm to your default
runlevel, and forget about startx.

About what kernel configurations you have to check and what you have to make
sure to not have checked, you can see it here:
http://en.gentoo-wiki.com/wiki/Fglrx
You'll want to disable everything related to DRM, basically.

Claudio Roberto França Pereira (a.k.a. Spidey)
hardMOB - HTForum - @spideybr
Engenharia de Computação - UFES 2006/1


[gentoo-user] Blank screen in X, no errors in Xorg.log

2011-10-02 Thread Adam Carter
HW = Chipset: ATI Radeon HD 4250   (Chipset = 0x9715)

Config is mostly taken from a working amd64 + radeon system.
linux-firmware is installed. No errors or warning in the the xorg
logs, but startx returns a blank screen on both the VGA and HDMI
outputs. It also fails with no xorg.conf. There's no process called X
or anything related to X, if i ssh in from another machine and run
'pgrep -lf X' as root.

When using fglrx;
proxy adam # tail Xorg.0.log
[   458.503] (II) fglrx(0): Desc: ATI FireGL DRM kernel module
[   458.503] (II) fglrx(0): Kernel Module version matches driver.
[   458.503] (II) fglrx(0): Kernel Module Build Time Information:
[   458.503] (II) fglrx(0): Build-Kernel UTS_RELEASE:3.0.4-gentoo
[   458.503] (II) fglrx(0): Build-Kernel MODVERSIONS:no
[   458.503] (II) fglrx(0): Build-Kernel __SMP__:yes
[   458.503] (II) fglrx(0): Build-Kernel PAGE_SIZE:  0x1000
[   458.503] (II) fglrx(0): [uki] register handle = 0x4000
[   458.526] (II) fglrx(0): DRI initialization successfull
[   458.526] (II) fglrx(0): FBADPhys: 0xc000 FBMappedSize: 0x0100e000
proxy adam #


When using the radeon driver;
proxy adam # tail /root/Xorg.0.log
[   123.799] GC: 0 objects of 72 bytes = 0 total bytes 0 private allocs
[   123.799] CURSOR: 0 objects of 8 bytes = 0 total bytes 0 private allocs
[   123.799] CURSOR_BITS: 0 objects of 8 bytes = 0 total bytes 0 private allocs
[   123.799] DBE_WINDOW: 0 objects of 24 bytes = 0 total bytes 0 private allocs
[   123.799] TOTAL: 1 objects, 120 bytes, 0 allocs
[   123.800] (II) Open ACPI successful (/var/run/acpid.socket)
[   123.800] (II) APM registered successfully
[   123.800] (II) RADEON(0): RADEONScreenInit d000 0 0
[   123.862] Output CRT1 disable success
[   123.871] Blank

What's my next step?


xorg.conf is;
Section ServerLayout
Identifier Layout
Screen  0  aticonfig-Screen[0]-0 0 0
EndSection

Section Files
#   These are not needed for fglrx, but will be for radeon
ModulePath /usr/lib64/xorg/modules
ModulePath /usr/lib64/opengl/xorg-x11/extensions/
EndSection

Section ServerFlags
Option  Xinerama off
#Option  blank time  5  # Blank the screen after 5 minutes (Fake)
Option  standby time  10  # Turn off screen after 10 minutes (DPMS)
Option  suspend time  20  # Full suspend after 20 minutes
Option  off time  30  # Turn off after half an hour
EndSection

Section Monitor
Identifier   aticonfig-Monitor[0]-0
Option  DPMS true
Option  PreferredMode 1440x900
EndSection

Section Device
Identifier  aticonfig-Device[0]-0
Driver  fglrx
#Driver  radeon
Option  backingstore true
#BusID   PCI:1:0:0
#BusID   PCI:0@1:0:1
# dynamicclocks is for powersaving but not impl on flgrx
#Option  DynamicClocks on
#Option  RenderAccel true - not supported by flgrx
#Option  AccelMethod exa - not supported by flgrx
#Option  UseFastTLS 1
#Option  EnablePageFlip true - not supported by flgrx
EndSection

Section Screen
Identifier aticonfig-Screen[0]-0
Device aticonfig-Device[0]-0
Monitoraticonfig-Monitor[0]-0
DefaultDepth 24
SubSection Display
Viewport   0 0
Depth 24
EndSubSection
EndSection

Section Extensions
Option  Composite Enable
EndSection

Section InputClass
Identifier keyboard-all
Driver evdev
#Option XkbLayout us,cz
#Option XkbModel logitech_g15
Option XkbRules xorg
#Option XkbOptions
grp:alt_shift_toggle,grp:switch,grp_led:scroll,compose:rwin,terminate:ctrl_alt_bksp
Option XkbOptions terminate:ctrl_alt_bksp
#Option XkbVariant ,qwerty
MatchIsKeyboard on
EndSection



Re: [gentoo-user] Blank screen in X, no errors in Xorg.log

2011-10-02 Thread Volker Armin Hemmann
Am Sonntag 02 Oktober 2011, 17:51:19 schrieb Adam Carter:
 HW = Chipset: ATI Radeon HD 4250   (Chipset = 0x9715)
 
 Config is mostly taken from a working amd64 + radeon system.
 linux-firmware is installed. No errors or warning in the the xorg
 logs, but startx returns a blank screen on both the VGA and HDMI
 outputs. It also fails with no xorg.conf. There's no process called X
 or anything related to X, if i ssh in from another machine and run
 'pgrep -lf X' as root.
 
 When using fglrx;
 proxy adam # tail Xorg.0.log
 [   458.503] (II) fglrx(0): Desc: ATI FireGL DRM kernel module
 [   458.503] (II) fglrx(0): Kernel Module version matches driver.
 [   458.503] (II) fglrx(0): Kernel Module Build Time Information:
 [   458.503] (II) fglrx(0): Build-Kernel UTS_RELEASE:   
 3.0.4-gentoo [   458.503] (II) fglrx(0): Build-Kernel MODVERSIONS: 
   no [   458.503] (II) fglrx(0): Build-Kernel __SMP__:yes [
   458.503] (II) fglrx(0): Build-Kernel PAGE_SIZE:  0x1000 [  
 458.503] (II) fglrx(0): [uki] register handle = 0x4000
 [   458.526] (II) fglrx(0): DRI initialization successfull
 [   458.526] (II) fglrx(0): FBADPhys: 0xc000 FBMappedSize: 0x0100e000
 proxy adam #
 
 
 When using the radeon driver;
 proxy adam # tail /root/Xorg.0.log
 [   123.799] GC: 0 objects of 72 bytes = 0 total bytes 0 private allocs
 [   123.799] CURSOR: 0 objects of 8 bytes = 0 total bytes 0 private allocs
 [   123.799] CURSOR_BITS: 0 objects of 8 bytes = 0 total bytes 0 private
 allocs [   123.799] DBE_WINDOW: 0 objects of 24 bytes = 0 total bytes 0
 private allocs [   123.799] TOTAL: 1 objects, 120 bytes, 0 allocs
 [   123.800] (II) Open ACPI successful (/var/run/acpid.socket)
 [   123.800] (II) APM registered successfully
 [   123.800] (II) RADEON(0): RADEONScreenInit d000 0 0
 [   123.862] Output CRT1 disable success
 [   123.871] Blank
 
 What's my next step?
 
 
 xorg.conf is;
 Section ServerLayout
 Identifier Layout
 Screen  0  aticonfig-Screen[0]-0 0 0
 EndSection
 
 Section Files
 #   These are not needed for fglrx, but will be for radeon
 ModulePath /usr/lib64/xorg/modules
 ModulePath /usr/lib64/opengl/xorg-x11/extensions/
 EndSection
 
 Section ServerFlags
 Option  Xinerama off
 #Option  blank time  5  # Blank the screen after 5 minutes
 (Fake) Option  standby time  10  # Turn off screen after 10 minutes
 (DPMS) Option  suspend time  20  # Full suspend after 20 minutes Option
  off time  30  # Turn off after half an hour
 EndSection
 
 Section Monitor
 Identifier   aticonfig-Monitor[0]-0
 Option  DPMS true
 Option  PreferredMode 1440x900
 EndSection
 
 Section Device
 Identifier  aticonfig-Device[0]-0
 Driver  fglrx
 #Driver  radeon
 Option  backingstore true
 #BusID   PCI:1:0:0
 #BusID   PCI:0@1:0:1
 # dynamicclocks is for powersaving but not impl on flgrx
 #Option  DynamicClocks on
 #Option  RenderAccel true - not supported by flgrx
 #Option  AccelMethod exa - not supported by flgrx
 #Option  UseFastTLS 1
 #Option  EnablePageFlip true - not supported by flgrx
 EndSection
 
 Section Screen
 Identifier aticonfig-Screen[0]-0
 Device aticonfig-Device[0]-0
 Monitoraticonfig-Monitor[0]-0
 DefaultDepth 24
 SubSection Display
 Viewport   0 0
 Depth 24
 EndSubSection
 EndSection
 
 Section Extensions
 Option  Composite Enable
 EndSection
 
 Section InputClass
 Identifier keyboard-all
 Driver evdev
 #Option XkbLayout us,cz
 #Option XkbModel logitech_g15
 Option XkbRules xorg
 #Option XkbOptions
 grp:alt_shift_toggle,grp:switch,grp_led:scroll,compose:rwin,terminate:ctrl_
 alt_bksp Option XkbOptions terminate:ctrl_alt_bksp
 #Option XkbVariant ,qwerty
 MatchIsKeyboard on
 EndSection

post Xorg.0.log?

-- 
#163933



Re: [gentoo-user] Blank screen in X, no errors in Xorg.log

2011-10-02 Thread Adam Carter
Xorg.0.log;

[   824.120]
X.Org X Server 1.10.4
Release Date: 2011-08-19
[   824.121] X Protocol Version 11, Revision 0
[   824.121] Build Operating System: Linux 3.0.4-gentoo x86_64 Gentoo
[   824.121] Current Operating System: Linux proxy 3.0.4-gentoo #2 SMP
Sat Oct 1 18:19:30 EST 2011 x86_64
[   824.121] Kernel command line: root=/dev/md126 md=126,/dev/sdb2,/dev/sdc2
[   824.121] Build Date: 01 October 2011  04:54:19AM
[   824.121]
[   824.121] Current version of pixman: 0.22.2
[   824.121]Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[   824.121] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   824.121] (==) Log file: /var/log/Xorg.0.log, Time: Mon Oct  3
03:49:49 2011
[   824.121] (==) Using config file: /etc/X11/xorg.conf
[   824.121] (==) Using system config directory /usr/share/X11/xorg.conf.d
[   824.122] (==) ServerLayout Layout
[   824.122] (**) |--Screen aticonfig-Screen[0]-0 (0)
[   824.122] (**) |   |--Monitor aticonfig-Monitor[0]-0
[   824.122] (**) |   |--Device aticonfig-Device[0]-0
[   824.122] (**) Option StandbyTime 10
[   824.122] (**) Option SuspendTime 20
[   824.122] (**) Option OffTime 30
[   824.122] (**) Option Xinerama off
[   824.122] (==) Automatically adding devices
[   824.122] (==) Automatically enabling devices
[   824.122] (==) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/TTF/,
/usr/share/fonts/OTF/,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi/,
/usr/share/fonts/75dpi/
[   824.122] (**) ModulePath set to
/usr/lib64/xorg/modules,/usr/lib64/opengl/xorg-x11/extensions/
[   824.122] (**) Extension Composite is enabled
[   824.123] (II) The server relies on udev to provide the list of
input devices.
If no devices become available, reconfigure udev or disable 
AutoAddDevices.
[   824.123] (II) Loader magic: 0x7df160
[   824.123] (II) Module ABI versions:
[   824.123]X.Org ANSI C Emulation: 0.4
[   824.123]X.Org Video Driver: 10.0
[   824.123]X.Org XInput driver : 12.2
[   824.123]X.Org Server Extension : 5.0
[   824.124] (--) PCI:*(0:1:5:0) 1002:9715:1458:d000 rev 0, Mem @
0xd000/268435456, 0xfdfe/65536, 0xfde0/1048576, I/O @
0xee00/256
[   824.124] (II) Open ACPI successful (/var/run/acpid.socket)
[   824.124] (II) LoadModule: extmod
[   824.125] (II) Loading /usr/lib64/xorg/modules/extensions/libextmod.so
[   824.125] (II) Module extmod: vendor=X.Org Foundation
[   824.125]compiled for 1.10.4, module version = 1.0.0
[   824.125]Module class: X.Org Server Extension
[   824.125]ABI class: X.Org Server Extension, version 5.0
[   824.125] (II) Loading extension MIT-SCREEN-SAVER
[   824.125] (II) Loading extension XFree86-VidModeExtension
[   824.125] (II) Loading extension XFree86-DGA
[   824.125] (II) Loading extension DPMS
[   824.125] (II) Loading extension XVideo
[   824.126] (II) Loading extension XVideo-MotionCompensation
[   824.126] (II) Loading extension X-Resource
[   824.126] (II) LoadModule: dbe
[   824.126] (II) Loading /usr/lib64/xorg/modules/extensions/libdbe.so
[   824.126] (II) Module dbe: vendor=X.Org Foundation
[   824.126]compiled for 1.10.4, module version = 1.0.0
[   824.126]Module class: X.Org Server Extension
[   824.126]ABI class: X.Org Server Extension, version 5.0
[   824.126] (II) Loading extension DOUBLE-BUFFER
[   824.126] (II) LoadModule: glx
[   824.126] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   824.127] (II) Module glx: vendor=X.Org Foundation
[   824.127]compiled for 1.10.4, module version = 1.0.0
[   824.127]ABI class: X.Org Server Extension, version 5.0
[   824.127] (==) AIGLX enabled
[   824.127] (II) Loading extension GLX
[   824.127] (II) LoadModule: record
[   824.127] (II) Loading /usr/lib64/xorg/modules/extensions/librecord.so
[   824.127] (II) Module record: vendor=X.Org Foundation
[   824.127]compiled for 1.10.4, module version = 1.13.0
[   824.127]Module class: X.Org Server Extension
[   824.127]ABI class: X.Org Server Extension, version 5.0
[   824.127] (II) Loading extension RECORD
[   824.127] (II) LoadModule: dri
[   824.127] (II) Loading /usr/lib64/xorg/modules/extensions/libdri.so
[   824.128] (II) Module dri: vendor=X.Org Foundation
[   824.128]compiled for 1.10.4, module version = 1.0.0
[   824.128]ABI class: X.Org Server Extension, version 5.0
[   824.128] (II) Loading extension XFree86-DRI
[   824.128] (II) LoadModule: dri2
[   824.128] (II) Loading /usr/lib64/xorg/modules/extensions/libdri2.so
[   824.128] (II) Module dri2: vendor=X.Org Foundation
[   824.128]compiled for 1.10.4, module version = 1.2.0
[   824.128]ABI class: X.Org Server Extension, version 5.0
[   824.128] (II) Loading extension DRI2
[   824.128] (II) 

Re: [gentoo-user] Blank screen in X, no errors in Xorg.log

2011-10-02 Thread Volker Armin Hemmann
Am Sonntag 02 Oktober 2011, 17:51:19 schrieb Adam Carter:
 HW = Chipset: ATI Radeon HD 4250   (Chipset = 0x9715)
 
 Config is mostly taken from a working amd64 + radeon system.
 linux-firmware is installed. No errors or warning in the the xorg
 logs, but startx returns a blank screen on both the VGA and HDMI
 outputs. It also fails with no xorg.conf. There's no process called X
 or anything related to X, if i ssh in from another machine and run
 'pgrep -lf X' as root.
 
 When using fglrx;
 proxy adam # tail Xorg.0.log
 [   458.503] (II) fglrx(0): Desc: ATI FireGL DRM kernel module
 [   458.503] (II) fglrx(0): Kernel Module version matches driver.
 [   458.503] (II) fglrx(0): Kernel Module Build Time Information:
 [   458.503] (II) fglrx(0): Build-Kernel UTS_RELEASE:   
 3.0.4-gentoo [   458.503] (II) fglrx(0): Build-Kernel MODVERSIONS: 
   no [   458.503] (II) fglrx(0): Build-Kernel __SMP__:yes [
   458.503] (II) fglrx(0): Build-Kernel PAGE_SIZE:  0x1000 [  
 458.503] (II) fglrx(0): [uki] register handle = 0x4000
 [   458.526] (II) fglrx(0): DRI initialization successfull
 [   458.526] (II) fglrx(0): FBADPhys: 0xc000 FBMappedSize: 0x0100e000
 proxy adam #
 
 
 When using the radeon driver;
 proxy adam # tail /root/Xorg.0.log
 [   123.799] GC: 0 objects of 72 bytes = 0 total bytes 0 private allocs
 [   123.799] CURSOR: 0 objects of 8 bytes = 0 total bytes 0 private allocs
 [   123.799] CURSOR_BITS: 0 objects of 8 bytes = 0 total bytes 0 private
 allocs [   123.799] DBE_WINDOW: 0 objects of 24 bytes = 0 total bytes 0
 private allocs [   123.799] TOTAL: 1 objects, 120 bytes, 0 allocs
 [   123.800] (II) Open ACPI successful (/var/run/acpid.socket)
 [   123.800] (II) APM registered successfully
 [   123.800] (II) RADEON(0): RADEONScreenInit d000 0 0
 [   123.862] Output CRT1 disable success
 [   123.871] Blank
 
 What's my next step?
 
 
 xorg.conf is;
 Section ServerLayout
 Identifier Layout
 Screen  0  aticonfig-Screen[0]-0 0 0
 EndSection
 
 Section Files
 #   These are not needed for fglrx, but will be for radeon
 ModulePath /usr/lib64/xorg/modules
 ModulePath /usr/lib64/opengl/xorg-x11/extensions/
 EndSection
 
 Section ServerFlags
 Option  Xinerama off
 #Option  blank time  5  # Blank the screen after 5 minutes
 (Fake) Option  standby time  10  # Turn off screen after 10 minutes
 (DPMS) Option  suspend time  20  # Full suspend after 20 minutes Option
  off time  30  # Turn off after half an hour
 EndSection
 
 Section Monitor
 Identifier   aticonfig-Monitor[0]-0
 Option  DPMS true
 Option  PreferredMode 1440x900
 EndSection
 
 Section Device
 Identifier  aticonfig-Device[0]-0
 Driver  fglrx
 #Driver  radeon
 Option  backingstore true
 #BusID   PCI:1:0:0
 #BusID   PCI:0@1:0:1
 # dynamicclocks is for powersaving but not impl on flgrx
 #Option  DynamicClocks on
 #Option  RenderAccel true - not supported by flgrx
 #Option  AccelMethod exa - not supported by flgrx
 #Option  UseFastTLS 1
 #Option  EnablePageFlip true - not supported by flgrx
 EndSection
 
 Section Screen
 Identifier aticonfig-Screen[0]-0
 Device aticonfig-Device[0]-0
 Monitoraticonfig-Monitor[0]-0
 DefaultDepth 24
 SubSection Display
 Viewport   0 0
 Depth 24
 EndSubSection
 EndSection
 
 Section Extensions
 Option  Composite Enable
 EndSection
 
 Section InputClass
 Identifier keyboard-all
 Driver evdev
 #Option XkbLayout us,cz
 #Option XkbModel logitech_g15
 Option XkbRules xorg
 #Option XkbOptions
 grp:alt_shift_toggle,grp:switch,grp_led:scroll,compose:rwin,terminate:ctrl_
 alt_bksp Option XkbOptions terminate:ctrl_alt_bksp
 #Option XkbVariant ,qwerty
 MatchIsKeyboard on
 EndSection

post Xorg.0.log?

-- 
#163933



Re: [gentoo-user] Blank screen in X, no errors in Xorg.log

2011-10-02 Thread Spidey
Try with this simplified xorg.conf:

Section Device
   Identifier  aticonfig-Device[0]-0
   Driver  fglrx
   #Driver  radeon
EndSection


You can toggle video drivers also and tell what happened. By the way, you
realise you also need to setup correct kernel modules and disable
conflicting ones when changing from fglrx to radeon, right?

Claudio Roberto França Pereira (a.k.a. Spidey)
hardMOB - HTForum - @spideybr
Engenharia de Computação - UFES 2006/1


Re: [gentoo-user] Blank screen in X, no errors in Xorg.log

2011-10-02 Thread Adam Carter
 By the way, you
 realise you also need to setup correct kernel modules and disable
 conflicting ones when changing from fglrx to radeon, right?

Really - i thought changing the X driver was all that was required. Is
that do with with KMS?

Anyway, i think i'll focus on just using fglrx as its what i use
successfully on my laptop.