xorg option to switch GPU
Hye @ all, i own a dell xps 13 since january of this year. This laptop has hybrid sli which is not supported in linux. I want to know if it's possible to configure xorg to use only the onboard GPU and switch the powerful one off? In vista i reach more than 4h batterylife in study modus (have some PDF open and hear music) by the same activity, in linux a reach only 2h. I have tried with BusId 'PCI:2:00:0' but it does't work! (i toke the 2:00:0 from lspci output PS sorry for my English here is my xorg.conf # nvidia-xconfig: X configuration file generated by nvidia-xconfig # nvidia-xconfig: version 1.0 (buildmeis...@builder62) Mon May 11 15:57:20 PDT 2009 Section ServerLayout Identifier Layout0 Screen 0 Screen0 0 0 InputDeviceKeyboard0 CoreKeyboard InputDeviceSynaptics Touchpad CorePointer EndSection Section Files EndSection Section Module Load dbe Load extmod Load type1 Load freetype Load glx EndSection Section InputDevice # generated from default Identifier Synaptics Touchpad Driver synaptics Option Protocol auto-dev Option Device /dev/psaux Option Emulate3Buttons no Option ZAxisMapping 4 5 Option SHMConfig on Option VertTwoFingerScroll true Option HorizTwoFingerScroll true EndSection Section InputDevice # generated from default Identifier Keyboard0 Driver kbd EndSection Section Monitor Identifier Monitor0 VendorName Unknown ModelName Unknown HorizSync 28.0 - 33.0 VertRefresh 43.0 - 72.0 Option DPMS EndSection Section Device Identifier Device0 Driver nvidia VendorName NVIDIA Corporation BoardName GeForce 9400M G EndSection Section Screen Identifier Screen0 Device Device0 MonitorMonitor0 DefaultDepth24 Option NoLogo True SubSection Display Depth 24 EndSubSection EndSection -- View this message in context: http://www.nabble.com/xorg-option-to-switch-GPU-tp24991717p24991717.html Sent from the Free Desktop - xorg mailing list archive at Nabble.com. ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: xorg option to switch GPU
Battery liveliness can be affected by many factors on GNU/Linux platform. 1) Make sure you use on demand CPU governor or powersave one. 2) Install laptop-mode-tools which can slow down your disc when on battery 3) Check your power management (in my case gnome-power-preferences) to tune screen light and other features 4) Make sure services You use are battery safe. For example if You use hdaps, install latest version from tp-smapi source. This one does not poll continuously from sysfs and also saves lots of battery. 2009/8/16 logangt jackywolfs...@gmail.com: Hye @ all, i own a dell xps 13 since january of this year. This laptop has hybrid sli which is not supported in linux. I want to know if it's possible to configure xorg to use only the onboard GPU and switch the powerful one off? In vista i reach more than 4h batterylife in study modus (have some PDF open and hear music) by the same activity, in linux a reach only 2h. ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
minimal modules
I have tried a download agent didn't have much luck. But the one Linux Torvald's wrote, I can't think of it's name. I have successfully used before. I'm just still looking for those minimal modules I can set up. Is there a list? Bill ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
File `-lselinux' does not exist.
I've been racking my brain on this for a few days without any results. I can compile the xserver normally, but as seen as I enable selinux I get an error during compilation time. make -d shows this: No need to remake target `../../xkb/libxkb.la'. Considering target file `-lselinux'. File `-lselinux' does not exist. Looking for an implicit rule for `-lselinux'. Trying pattern rule with stem `-lselinux'. Trying implicit prerequisite `-lselinux.pre'. Trying pattern rule with stem `-lselinux'. Trying implicit prerequisite `-lselinux.c'. Trying pattern rule with stem `-lselinux'. Trying implicit prerequisite `-lselinux.o'. Trying pattern rule with stem `-lselinux'. Trying implicit prerequisite `-lselinux,v'. Trying pattern rule with stem `-lselinux'. Trying implicit prerequisite `RCS/-lselinux,v'. Trying pattern rule with stem `-lselinux'. Trying implicit prerequisite `RCS/-lselinux'. Trying pattern rule with stem `-lselinux'. Trying implicit prerequisite `s.-lselinux'. Trying pattern rule with stem `-lselinux'. Trying implicit prerequisite `SCCS/s.-lselinux'. Trying pattern rule with stem `-lselinux'. Trying implicit prerequisite `-lselinux.pre'. Looking for a rule with intermediate file `-lselinux.pre'. Avoiding implicit rule recursion. Trying pattern rule with stem `-lselinux.pre'. Trying implicit prerequisite `-lselinux.pre,v'. Trying pattern rule with stem `-lselinux.pre'. Trying implicit prerequisite `RCS/-lselinux.pre,v'. Trying pattern rule with stem `-lselinux.pre'. Trying implicit prerequisite `RCS/-lselinux.pre'. Trying pattern rule with stem `-lselinux.pre'. Trying implicit prerequisite `s.-lselinux.pre'. Trying pattern rule with stem `-lselinux.pre'. Trying implicit prerequisite `SCCS/s.-lselinux.pre'. Trying pattern rule with stem `-lselinux'. Trying implicit prerequisite `-lselinux.c'. Looking for a rule with intermediate file `-lselinux.c'. Avoiding implicit rule recursion. Trying pattern rule with stem `-lselinux'. Trying implicit prerequisite `-lselinux.w'. Trying pattern rule with stem `-lselinux.c'. Trying implicit prerequisite `-lselinux.c,v'. Trying pattern rule with stem `-lselinux.c'. Trying implicit prerequisite `RCS/-lselinux.c,v'. Trying pattern rule with stem `-lselinux.c'. Trying implicit prerequisite `RCS/-lselinux.c'. Trying pattern rule with stem `-lselinux.c'. Trying implicit prerequisite `s.-lselinux.c'. Trying pattern rule with stem `-lselinux.c'. Trying implicit prerequisite `SCCS/s.-lselinux.c'. Trying pattern rule with stem `-lselinux'. Trying implicit prerequisite `-lselinux.w'. Looking for a rule with intermediate file `-lselinux.w'. Avoiding implicit rule recursion. Avoiding implicit rule recursion. Trying pattern rule with stem `-lselinux.w'. Trying implicit prerequisite `-lselinux.w,v'. Trying pattern rule with stem `-lselinux.w'. Trying implicit prerequisite `RCS/-lselinux.w,v'. Trying pattern rule with stem `-lselinux.w'. Trying implicit prerequisite `RCS/-lselinux.w'. Trying pattern rule with stem `-lselinux.w'. Trying implicit prerequisite `s.-lselinux.w'. Trying pattern rule with stem `-lselinux.w'. Trying implicit prerequisite `SCCS/s.-lselinux.w'. Trying pattern rule with stem `-lselinux'. Trying implicit prerequisite `-lselinux.o'. Looking for a rule with intermediate file `-lselinux.o'. Avoiding implicit rule recursion. Trying pattern rule with stem `-lselinux'. Rejecting impossible implicit prerequisite `-lselinux.c'. Trying pattern rule with stem `-lselinux.o'. Trying implicit prerequisite `-lselinux.o,v'. Trying pattern rule with stem `-lselinux.o'. Trying implicit prerequisite `RCS/-lselinux.o,v'. Trying pattern rule with stem `-lselinux.o'. Trying implicit prerequisite `RCS/-lselinux.o'. Trying pattern rule with stem `-lselinux.o'. Trying implicit prerequisite `s.-lselinux.o'. Trying pattern rule with stem `-lselinux.o'. Trying implicit prerequisite `SCCS/s.-lselinux.o'. No implicit rule found for `-lselinux'. Finished prerequisites of target file `-lselinux'. Must remake target `-lselinux'. make[4]: Entering directory `/home/justin/LFS/xserver/xorg-server-1.6.1.901/hw/xfree86' make[4]: *** No rule to make target `-lselinux', needed by `Xorg'. Stop. make[4]: Leaving directory `/home/justin/LFS/xserver/xorg-server-1.6.1.901/hw/xfree86' Reaping losing child 0x00656860 PID 17449 make[3]: *** [all-recursive] Error 1 Removing child 0x00656860 PID 17449 from chain. make[3]: Leaving directory `/home/justin/LFS/xserver/xorg-server-1.6.1.901/hw/xfree86' Reaping losing child 0x00657740 PID
Re: minimal modules
On Sun, Aug 16, 2009 at 4:27 PM, Bill Cunninghambill...@suddenlink.net wrote: I have tried a download agent didn't have much luck. But the one Linux Torvald's wrote, I can't think of it's name. git? I have successfully used before. I'm just still looking for those minimal modules I can set up. Is there a list? Why aren't you using the packages provided by your distribution? Matt ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
ANN: xterm patch #246
Patch #246 - 2009/8/16 * remove obsolete logic for saving/restoring wrapping flags, which did not work on 64-bit platform. Wrapping flags (stored in the line-index) are now copied with line-data (Debian #541160). * modify comments in app-defaults files to avoid problem with C preprocessor used by xrdb (Debian #541603). * restore special case in makeColorPair, needed for colorBDMode resource (Debian #541089). * correct SetLineFlags() macro, broken in [250]patch #244 when recoding to avoid gcc-specific bitfields (Debian #541236). * modify initialization of screen buffers to ensure that pointers align to int-boundaries. This fixes a problem introduced in [251]patch #244 where the color- and character-arrays (stored after the video-attributes in each row) might be misaligned (report by Rajeev V Pillai). * add limit-check in ScrnRefresh for handling saved-lines from the circular buffer which are repainted on a screen whose width has increased. To improve performance, circular buffer entries are not resized (report by Rajeev V Pillai). * correct type for CellColor (a late change in [252]patch #244 to avoid gcc-specifc enums made that unsigned rather than unsigned short, for the 256-color option). * fix typo in configure option --enable-16bit-chars (report by Rajeev V. Pillai). -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net pgpnGmP20faVB.pgp Description: PGP signature ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: File `-lselinux' does not exist.
On Sun, Aug 16, 2009 at 4:52 PM, Dan Nicholsondbn.li...@gmail.com wrote: On Sun, Aug 16, 2009 at 2:11 PM, Justin Mattockjustinmatt...@gmail.com wrote: I've been racking my brain on this for a few days without any results. I can compile the xserver normally, but as seen as I enable selinux I get an error during compilation time. make -d shows this: No need to remake target `../../xkb/libxkb.la'. Considering target file `-lselinux'. File `-lselinux' does not exist. Try commenting the automake rule for libxorg_la_DEPENDENCIES in hw/xfree86/Makefile.am. The problem is that libxorg_la_DEPENDENCIES is defined as libxorg_la_LIBADD, which (rightly) includes -lselinux. However, DEPENDENCIES are used as make prerequisites, so make will try to find a file named -lselinux. DEPENDENCIES and LIBADD need to be untangled so that external libraries don't appear as make prereqs. Try this (untested) patch. -- Dan diff --git a/configure.ac b/configure.ac index 3287f9a..e7c0596 100644 --- a/configure.ac +++ b/configure.ac @@ -1337,7 +1337,7 @@ if test x$XORG = xyes; then XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os' XORG_INCS=$XORG_DDXINCS $XORG_OSINCS XORG_CFLAGS=$XORGSERVER_CFLAGS -DHAVE_XORG_CONFIG_H - XORG_LIBS=$COMPOSITE_LIB $FIXES_LIB $XEXTXORG_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $SELINUX_LIB + XORG_LIBS=$COMPOSITE_LIB $FIXES_LIB $XEXTXORG_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB dnl == dnl symbol visibility @@ -1390,7 +1390,7 @@ if test x$XORG = xyes; then AC_CHECK_FUNCS([pci_device_is_boot_vga]) LIBS=$SAVE_LIBS CFLAGS=$SAVE_CFLAGS - XORG_SYS_LIBS=$XORG_SYS_LIBS $PCIACCESS_LIBS $DLOPEN_LIBS $GLX_SYS_LIBS + XORG_SYS_LIBS=$XORG_SYS_LIBS $PCIACCESS_LIBS $DLOPEN_LIBS $GLX_SYS_LIBS $SELINUX_LIB XORG_CFLAGS=$XORG_CFLAGS $PCIACCESS_CFLAGS case $host_os in ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: File `-lselinux' does not exist.
Dan Nicholson wrote: On Sun, Aug 16, 2009 at 4:52 PM, Dan Nicholsondbn.li...@gmail.com wrote: On Sun, Aug 16, 2009 at 2:11 PM, Justin Mattockjustinmatt...@gmail.com wrote: I've been racking my brain on this for a few days without any results. I can compile the xserver normally, but as seen as I enable selinux I get an error during compilation time. make -d shows this: No need to remake target `../../xkb/libxkb.la'. Considering target file `-lselinux'. File `-lselinux' does not exist. Try commenting the automake rule for libxorg_la_DEPENDENCIES in hw/xfree86/Makefile.am. The problem is that libxorg_la_DEPENDENCIES is defined as libxorg_la_LIBADD, which (rightly) includes -lselinux. However, DEPENDENCIES are used as make prerequisites, so make will try to find a file named -lselinux. DEPENDENCIES and LIBADD need to be untangled so that external libraries don't appear as make prereqs. Try this (untested) patch. -- Dan Thanks you very much for the info, and patch. I cleaned out the xserver(distclean) then applied your patch. unfortunately I'm still hitting this same error. I can go and try looking at the Makefile to see, if this approach works. Justin P. Mattock ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: File `-lselinux' does not exist.
On Sun, Aug 16, 2009 at 6:02 PM, Justin P. Mattockjustinmatt...@gmail.com wrote: ooops! (as you can see my brain is mush, from looking at this all day). After doing the autoreconf with your patch finally the xserver compiled all the way through. (nice catch). Is Xorg actually linked to libselinux? Just want to make sure before I push the patch. -- Dan ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Xserver LogInit
I'm not sure if this is the proper list for this, but here goes. Basically, I'm curious if the LogInit function defined in xserver/log/os.h is able to be called by an X application. ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg
Re: Don't reset the lastDeviceEventTime when doing DPMS actions
On Fri, Aug 14, 2009 at 12:07:28PM +0100, Richard Hughes wrote: When we change the DPMS mode, don't play games with the last event time as this breaks applications using IDLETIME to turn the backlight off after a preset time. This patch fixes gnome-power-manager and xfce-power-manager. Previously gnome-power-manager was working around the idletime reset by setting a 1ms second timer and ignoring the first if there was a DPMS action in the last few ms. This was racey as hell, and it's probably best just to fix the X bug once and for all. The comment for TimeSinceLastInputEvent even says Function used for screensaver purposes by the os module. Returns the time in milliseconds since there last was any input. so it's clearly for use for screensavers and power managers rather than what's the last time of any action in the server. Patch attached. Please review. Tested, seems to work fine. Pushed as c1d901d723c3bee523736eacc15b44a7dff484fe, thanks for the patch! (btw. next time please send patches to xorg-de...@freedesktop.org) Cheers, Peter ___ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg