Re: [gentoo-user] Re: Screen blank on Nvidia GT 610M graphic card

2012-05-24 Thread du yang
Thanks for your information. The problem has been solved. It is caused by
the nvidia Optimus feature.
 在 2012-5-24 下午12:46,"Seong-ho Cho" 写道:

> first of all sorry for my poor english :-$
>
> you may check your hardware PCI ID by "lspci -ns 01:00.0".
> make sure that like below manual (Link. you can find easily nvidia
> download site)
> whether your hardware is supported or not.
>
>
> http://us.download.nvidia.com/XFree86/Linux-x86_64/295.53/README/supportedchips.html
>
> if there is no same pci id, your hardware is not supported yet.
>
> I've met some same problem due to purchase "gtx 560 SE".
> so I changed to "gtx 560 Ti" and same problem is resolved.
>
> 2012/5/24 du yang :
> > Thanks the update, but still get the same problem.
> >
> > 在 2012-5-24 上午9:45,"Nikos Chantziaras" 写道:
> >
> >> On 24/05/12 03:51, du yang wrote:
> >>>
> >>>Section "Device"
> >>>Identifier "NVidia GeForce GTX 560 Ti"
> >>
> >>
> >> Oops, I forgot to change the ID there.  Try setting it to "NVidia GT
> >> 610M", like the Screen section.
> >>
> >>
> >
>
>


Re: [gentoo-user] Re: Screen blank on Nvidia GT 610M graphic card

2012-05-24 Thread du yang
On Thu, May 24, 2012 at 9:18 AM, Salvatore Borgia wrote:

> this  is the old way
> to do the trick, instead this  is an
> interesting recent project but I haven't tried it yet.
>
>
Thanks  Salvatore, and thanks everyone.

Finally I got it solved by follow Salvatore's suggestion. I am using the
bumblebee project.

there are still some other minor problems solved before success running
bumblebee.

The vgl init script doesn't work on xdm. the xauth section should have a
update. the start function of /etc/init.d/vgl was updated. paste here for
anyone may need it.

start() {
ebegin "Starting VirtualGL"
truncate --size=0 /etc/VirtualGL/vgl_xauth_key

# Check if XAUTHORITY was set successfully, if not wait a bit and let X
to start
[ -z "$XAUTHORITY" ] && sleep 3 && set_xauth
[ -e "$XAUTHORITY" ] || sleep 3
for i in `xauth -f $XAUTHORITY list | awk '{print $3}'`; do
xauth -f /etc/VirtualGL/vgl_xauth_key add $DISPLAY . $i && \
chmod 644 /etc/VirtualGL/vgl_xauth_key
done
eend $?
}


and i915(and its modsetting ) is required for my intel onboard card, but we
have to disable all framebuffer driver options before going that.

else the screen will get blank during boot stage.

-- 
Dreaming my dream!


Re: [gentoo-user] Re: Screen blank on Nvidia GT 610M graphic card

2012-05-23 Thread Seong-ho Cho
first of all sorry for my poor english :-$

you may check your hardware PCI ID by "lspci -ns 01:00.0".
make sure that like below manual (Link. you can find easily nvidia
download site)
whether your hardware is supported or not.

http://us.download.nvidia.com/XFree86/Linux-x86_64/295.53/README/supportedchips.html

if there is no same pci id, your hardware is not supported yet.

I've met some same problem due to purchase "gtx 560 SE".
so I changed to "gtx 560 Ti" and same problem is resolved.

2012/5/24 du yang :
> Thanks the update, but still get the same problem.
>
> 在 2012-5-24 上午9:45,"Nikos Chantziaras" 写道:
>
>> On 24/05/12 03:51, du yang wrote:
>>>
>>>    Section "Device"
>>>        Identifier "NVidia GeForce GTX 560 Ti"
>>
>>
>> Oops, I forgot to change the ID there.  Try setting it to "NVidia GT
>> 610M", like the Screen section.
>>
>>
>



Re: [gentoo-user] Re: Screen blank on Nvidia GT 610M graphic card

2012-05-23 Thread du yang
Thanks the update, but still get the same problem.
 在 2012-5-24 上午9:45,"Nikos Chantziaras" 写道:

> On 24/05/12 03:51, du yang wrote:
>
>>Section "Device"
>>Identifier "NVidia GeForce GTX 560 Ti"
>>
>
> Oops, I forgot to change the ID there.  Try setting it to "NVidia GT
> 610M", like the Screen section.
>
>
>


[gentoo-user] Re: Screen blank on Nvidia GT 610M graphic card

2012-05-23 Thread Nikos Chantziaras

On 24/05/12 03:51, du yang wrote:

Section "Device"
Identifier "NVidia GeForce GTX 560 Ti"


Oops, I forgot to change the ID there.  Try setting it to "NVidia GT 
610M", like the Screen section.





Re: [gentoo-user] Re: Screen blank on Nvidia GT 610M graphic card

2012-05-23 Thread Salvatore Borgia
this  is the old way
to do the trick, instead this  is an
interesting recent project but I haven't tried it yet.

2012/5/24 du yang 

>
>
> On Thu, May 24, 2012 at 12:38 AM, Salvatore Borgia wrote:
>
>> Hi, have the video card the optimus technology? In this case the "error"
>> that you get is correct, because the video card is not directly connected
>> to the monitor, so you have to configure the intel video card too.
>>
>>
>
> Yes, the card has optimus technology, could you give a detail action what
> I should do?
>
> I tried to compile driver the intel video card (i915), but that let my
> screen blank during boot phase(after udev started). my screen gone back
> after turned off the driver (i915).
>
>
>
> --
> Dreaming my dream!
>


Re: [gentoo-user] Re: Screen blank on Nvidia GT 610M graphic card

2012-05-23 Thread du yang
On Thu, May 24, 2012 at 12:38 AM, Salvatore Borgia wrote:

> Hi, have the video card the optimus technology? In this case the "error"
> that you get is correct, because the video card is not directly connected
> to the monitor, so you have to configure the intel video card too.
>
>

Yes, the card has optimus technology, could you give a detail action what I
should do?

I tried to compile driver the intel video card (i915), but that let my
screen blank during boot phase(after udev started). my screen gone back
after turned off the driver (i915).



-- 
Dreaming my dream!


Re: [gentoo-user] Re: Screen blank on Nvidia GT 610M graphic card

2012-05-23 Thread du yang
On Thu, May 24, 2012 at 2:37 AM, Nikos Chantziaras  wrote:

> On 23/05/12 18:59, du yang wrote:
>
>> Hi,
>>
>> I recently bought a new notebook ASUS U31SG which has a nvidia GT 610M
>> graphic card,
>>
>> I always get blank screen (X is running) no matter how i tune the
>> xorg.conf,
>>
>
> Delete your xorg.conf file.  Then, create "/etc/X11/xorg.conf.d/nvidia.**conf"
> with these contents:
>
>
> Section "Device"
>Identifier "NVidia GeForce GTX 560 Ti"
>Driver  "nvidia"
>
> EndSection
>
> Section "Screen"
>Identifier "Screen0"
>Device "NVidia GT 610M"
>DefaultDepth24
>Option "metamodes" "1920x1080 +0+0"
>SubSection "Display"
>Depth  24
>EndSubSection
> EndSection
>
>
> (Replace "1920x1080" with the resolution you want.)
>
> Also make sure to start "nvidia-settings --load-config-only" when starting
> X.  Unfortunately, Gentoo does not do this automatically (like Ubuntu and
> other distros), so you need to do it manually by putting this in
> "/etc/X11/xinit/xinitrc.d/95-**nvidia-settings"
>
>
> #!/bin/sh
> [ -x /opt/bin/nvidia-settings ] &&
>/opt/bin/nvidia-settings --load-config-only > /dev/null 2>&1
>
>
> and make it executable:
>
> $ chmod +x /etc/X11/xinit/xinitrc.d/95-**nvidia-settings
>
>
>

Thanks your help.

but I got error "screen not found" when I try to use it. is there
configuration missing?

[115146.137] (II) LoadModule: "nvidia"
[115146.137] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[115146.138] (II) Module nvidia: vendor="NVIDIA Corporation"
[115146.138] compiled for 4.0.2, module version = 1.0.0
[115146.138] Module class: X.Org Video Driver
[115146.138] (II) NVIDIA dlloader X Driver  295.53  Fri May 11 23:29:56 PDT
2012
[115146.138] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[115146.138] (--) using VT number 7

[115146.140] (EE) No devices detected.
[115146.140]
Fatal server error:
[115146.140] no screens found
[115146.140]



-- 
Dreaming my dream!


[gentoo-user] Re: Screen blank on Nvidia GT 610M graphic card

2012-05-23 Thread Nikos Chantziaras

On 23/05/12 18:59, du yang wrote:

Hi,

I recently bought a new notebook ASUS U31SG which has a nvidia GT 610M
graphic card,

I always get blank screen (X is running) no matter how i tune the
xorg.conf,


Delete your xorg.conf file.  Then, create 
"/etc/X11/xorg.conf.d/nvidia.conf" with these contents:



Section "Device"
Identifier "NVidia GeForce GTX 560 Ti"
Driver  "nvidia"
EndSection

Section "Screen"
Identifier "Screen0"
Device "NVidia GT 610M"
DefaultDepth24
Option "metamodes" "1920x1080 +0+0"
SubSection "Display"
Depth  24
EndSubSection
EndSection


(Replace "1920x1080" with the resolution you want.)

Also make sure to start "nvidia-settings --load-config-only" when 
starting X.  Unfortunately, Gentoo does not do this automatically (like 
Ubuntu and other distros), so you need to do it manually by putting this 
in "/etc/X11/xinit/xinitrc.d/95-nvidia-settings"



#!/bin/sh
[ -x /opt/bin/nvidia-settings ] &&
/opt/bin/nvidia-settings --load-config-only > /dev/null 2>&1


and make it executable:

$ chmod +x /etc/X11/xinit/xinitrc.d/95-nvidia-settings




[gentoo-user] Re: Screen blank on Nvidia GT 610M graphic card

2012-05-23 Thread du yang
more information,

I have configure the kernel follow this guide,
http://www.gentoo.org/doc/en/nvidia-guide.xml


On Wed, May 23, 2012 at 11:59 PM, du yang  wrote:

> Hi,
>
> I recently bought a new notebook ASUS U31SG which has a nvidia GT 610M
> graphic card,
>
> I always get blank screen (X is running) no matter how i tune the
> xorg.conf,
>
> if there is no xorg.conf, X will be running smoothly with WM, though the
> monitor resolution is a bit lower.
>
> Anyone meet the same problem or know how to fix it?
>
> Many thanks in advance.
>
> Driver version:
> nvidia-drivers-295.53
>
> Here is my current /etc/X11/xorg.conf,
>
> 
>
> Section "ServerLayout"
> Identifier "X.org Configured"
> Screen  0  "Screen0" 0 0
> InputDevice"Mouse0" "CorePointer"
> InputDevice"Keyboard0" "CoreKeyboard"
> EndSection
>
> Section "Files"
> ModulePath  "/usr/lib64/xorg/modules"
> FontPath"/usr/share/fonts/misc/"
> FontPath"/usr/share/fonts/TTF/"
> FontPath"/usr/share/fonts/OTF/"
> FontPath"/usr/share/fonts/Type1/"
> FontPath"/usr/share/fonts/100dpi/"
> FontPath"/usr/share/fonts/75dpi/"
> FontPath"/usr/share/fonts/truetype/"
> EndSection
>
> Section "Module"
> #Load   "ddc"
> #Load   "dbe"
> #Load   "vbe"
> #Load   "bitmap"
> #Load   "type1"
> #Load   "freetype"
> Load   "glx"
> #Load   "extmod"
> #Load   "record"
> Disable "dri"
> Disable "dri2"
> EndSection
>
> Section "ServerFlags"
> Option "AllowEmptyInput" "false"
> Option "AllowMouseOpenFail" "true"
> Option "Xinerama" "0"
> EndSection
>
> Section "InputDevice"
> Identifier "Keyboard0"
> Driver "evdev"
> Option "CoreKeyboard"
> Option "XkbRules" "xorg"
> Option "XkbModel" "endev"
> Option "XkbOptions"
> "grp:toggle,grp_led:scroll,terminate:ctrl_alt_bksp"
> Option "XkbVariant" ",winkeys"
> Option "XkbLayOut" "us"
> EndSection
>
> Section "InputDevice"
> Identifier "Mouse0"
> Driver "evdev"
> Option "Protocol" "auto"
> Option "Device" "/dev/input/mice"
> Option "ZAxisMapping" "4 5 6 7"
> EndSection
>
> Section "Monitor"
> Identifier "Monitor0"
> VendorName "Monitor Vendor"
> ModelName  "Monitor Model"
> Option "DPMS"
> #HorizSync  30-50
> #VertRefresh50-100
> # 1368x768 @ 60.00 Hz (GTF) hsync: 47.70 kHz; pclk: 85.86 MHz
> #Modeline "1368x768_60.00"  85.86  1368 1440 1584 1800  768 769 772
> 795  -HSync +Vsync
> Option "ConnectedMonitor" "DFP-0"
> Option "CustomEDID" "DFP-0:/etc/X11/edid.bin"
> EndSection
>
> Section "Device"
> Identifier "Card0"
> Driver "nvidia"
> Option "UseDisplayDevice" "DFP-0"
> Option "HWCursor" "false"
> BusID  "PCI:1:0:0"
> EndSection
>
> Section "Screen"
> Identifier "Screen0"
> Device "Card0"
> Monitor"Monitor0"
> DefaultDepth32
> #Option "TwinView" "0"
> #Option "TwinViewXinramaInfoOrder" "DFP-0"
> #Option "metamodes" "nvidia-auto-select +0+0"
> SubSection "Display"
> #Viewport0 0
> Depth   32
> Modes  "1366x768_60"
> EndSubSection
> EndSection
>
>
>
> my Xorg.0.log, there is no errors..
>
> ---
> [   543.167]
> X.Org X Server 1.12.1
> Release Date: 2012-04-13
> [   543.169] X Protocol Version 11, Revision 0
> [   543.169] Build Operating System: Linux 3.3.5-gentoo x86_64 Gentoo
> [   543.169] Current Operating System: Linux omega 3.3.5-gentoo #23 SMP
> Mon May 21 01:01:18 CST 2012 x86_64
> [   543.170] Kernel command line: root=/dev/sda3 rootfstype=ext4
> video=uvesafb:mtrr:3,ywrap,1024x768-32@60 console=tty1 quiet
> [   543.170] Build Date: 19 May 2012  10:17:30AM
> [   543.171]
> [   543.171] Current version of pixman: 0.24.4
> [   543.172] Before reporting problems, check http://wiki.x.org
> to make sure that you have the latest version.
> [   543.173] Markers: (--) probed, (**) from config file, (==) default
> setting,
> (++) from command line, (!!) notice, (II) informational,
> (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> [   543.175] (==) Log file: "/var/log/Xorg.0.log", Time: Wed May 23
> 00:35:59 2012
> [   543.175] (==) Using config file: "/etc/X11/xorg.conf"
> [   543.176] (==) Using system config directory
> "/usr/share/X11/xorg.conf.d"
> [   543.177] (==) ServerLayout "X.org Configured"
> [   543.177] (**) |-->Screen "Screen0" (0)
> [   543.177