Re: [gentoo-user] laptop screen goes dark in boot

2012-04-24 Thread Zhang Jun
On Tue, Apr 24, 2012 at 12:57 AM, Michael Scherer 
a6702...@unet.univie.ac.at wrote:

 **
 unless you have solved the problem already, could you please
 post the rc.log, too?

 michael

 --
 Michael Scherer
 Univ.klinik f. Psychiatrie
 email: michael.sche...@meduniwien.ac.at
 phone: +43 6991 941 22 54

 - Original Message -
 *From:* Zhang Jun gb2...@gmail.com
 *To:* gentoo-user@lists.gentoo.org
 *Sent:* Monday, 23 April, 2012 03:50
 *Subject:* Re: [gentoo-user] laptop screen goes dark in boot

 I get the dmesg log and kernel config, forgot to get the rc.log ( using
 windows now ).
 please help to have a look on these files,
 also tryed boot with different kernel parameters for acpi, only acpi=off
 works, but I don't think it is a good idea.
 I'm using grub4dos with kernel (hd0,7)/kernel-3.0.17-r1 root=/dev/sda9 ro
 quiet vga=792 gentoo=nodevfs acpi_enforce_resources=lax
 resume=swap:/dev/sda7, remove the acpi_enforce_resources=lax also not
 works.

 thanks!

 On Mon, Apr 23, 2012 at 2:53 AM, Michael Scherer 
 a6702...@unet.univie.ac.at wrote:

 **
 did you look at the logs? if you haven't already looked at them dmesg and
 /var/log/rc.log
 have information that could help you pinpoint the problem.
 one of the earlier live-cds had that problem and I got around it by
 starting the the cd with
 gentoo noacpi nox options though I doubt this can help in your case.
 could you provide some more information like the logs, the loader conf
 files and may be
 .config of your kernel make?

 michael

 --
 Michael Scherer
 Univ.klinik f. Psychiatrie
 email: michael.sche...@meduniwien.ac.at
 phone: +43 6991 941 22 54

 - Original Message -
 *From:* Zhang Jun gb2...@gmail.com
 *To:* gentoo-user gentoo-user@lists.gentoo.org
 *Sent:* Sunday, 22 April, 2012 08:25
 *Subject:* [gentoo-user] laptop screen goes dark in boot

 laptop: asus F3TC, amd Turion, NV-go7300
 kernel-3.0.17-r1 tuxonice

 screen goes dark just after I see the linux boot logo,
 when using kernel 2.6.x, I even do not use hotkey to control lcd
 backlight, default light is ok,
 but now, it goes dark, re-compiled kernel many times, but no luck,

 in kernel acpi config page, I did't see the video module, and seems no
 /proc/acpi/video/ .

 is there anyone have met this problem and have solution ?

 thanks!


 sorry, I didn't get time to test these ideads,

I just turn on /etc/r.conf 'rc_logger=YES', here is rc.log


rc.log
Description: Binary data


[gentoo-user] laptop screen goes dark in boot

2012-04-22 Thread Zhang Jun
laptop: asus F3TC, amd Turion, NV-go7300
kernel-3.0.17-r1 tuxonice

screen goes dark just after I see the linux boot logo,
when using kernel 2.6.x, I even do not use hotkey to control lcd backlight,
default light is ok,
but now, it goes dark, re-compiled kernel many times, but no luck,

in kernel acpi config page, I did't see the video module, and seems no
/proc/acpi/video/ .

is there anyone have met this problem and have solution ?

thanks!


Re: [gentoo-user] emerge dependence question

2011-11-06 Thread Zhang Jun
I remove these packages, and then:

# emerge -pvutDN world

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[nomerge   ] app-editors/emacs-23.3-r2  USE=X gtk gzip-el jpeg png xft
xpm -Xaw3d -alsa (-aqua) -athena -dbus -gconf -gif -gpm -hesiod -kerberos
-livecd -m17n-lib -motif -sound -source -svg -tiff -toolkit-scroll-bars
[nomerge   ]  app-emacs/emacs-common-gentoo-1.2-r2  USE=X
-emacs22icons
[ebuild  N ]   virtual/emacs-23  0 kB
[ebuild  N ]app-editors/emacs-23.3-r2  USE=X gtk gzip-el jpeg png
xft xpm -Xaw3d -alsa (-aqua) -athena -dbus -gconf -gif -gpm -hesiod
-kerberos -livecd -m17n-lib -motif -sound -source -svg -tiff
-toolkit-scroll-bars 37,842 kB
[ebuild  N ] app-admin/eselect-emacs-1.13  8 kB
[ebuild  N ]  app-admin/eselect-ctags-1.13  0 kB
[ebuild  N ] app-emacs/emacs-common-gentoo-1.2-r2  USE=X
-emacs22icons 46 kB


the -t option should display the dependence,
it seems all new packages (N) are needed by
app-editors/emacs-23.3-r2, but app-editors/emacs-23.3-r2 is not installed.


On Sun, Nov 6, 2011 at 12:46 PM, Joseph syscon...@gmail.com wrote:

 I don't use emacs so running:
 emerge -pv emacs (wants to pull the following pacages on amd64)
 [ebuild  N ] app-admin/eselect-ctags-1.13  8 kB
 [ebuild  N ] app-admin/eselect-emacs-1.13  0 kB
 [ebuild  N ] app-emacs/emacs-common-gentoo-**1.2-r2  [ebuild  N ]
 app-editors/emacs-23.3-r2   [ebuild  N ] virtual/emacs-23  0 kB

 just check which one you have installed and pull down the one you are
 missing.

 --
 Joseph



 On 11/06/11 11:56, Zhang Jun wrote:

  # emerge -pvutDN world

  These are the packages that would be merged, in reverse order:

  Calculating dependencies... done!
  [nomerge   ] app-editors/emacs-23.3-r2  USE=X gtk gzip-el jpeg png
  xft xpm -Xaw3d -alsa (-aqua) -athena -dbus -gconf -gif -gpm -hesiod
  -kerberos -livecd -m17n-lib -motif -sound -source -svg -tiff
  -toolkit-scroll-bars
  [nomerge   ]  app-emacs/emacs-common-gentoo-**1.2-r2  USE=X
  -emacs22icons
  [ebuild  N ]   virtual/emacs-23  0 kB
  [ebuild  N ]app-editors/emacs-23.3-r2  USE=X gtk gzip-el jpeg
 png
  xft xpm -Xaw3d -alsa (-aqua) -athena -dbus -gconf -gif -gpm -hesiod
  -kerberos -livecd -m17n-lib -motif -sound -source -svg -tiff
  -toolkit-scroll-bars 37,842 kB
  [ebuild  N ] app-emacs/emacs-common-gentoo-**1.2-r2  USE=X
  -emacs22icons 46 kB

  Total: 3 packages (3 new), Size of downloads: 37,888 kB

  question is, which package makes emerge want to install emacs ?
  I used to use emacs from portage, but just unmerged it, want to use a
  special version from dev source.

  thanks!






Re: [gentoo-user] emerge dependence question

2011-11-06 Thread Zhang Jun
 # eselect editor list
Available targets for the EDITOR variable:
  [1]   /bin/nano
  [2]   /bin/ed
  [3]   /usr/bin/ex
  [4]   /usr/bin/vi
  [ ]   (free form)


On Sun, Nov 6, 2011 at 6:19 PM, Neil Bothwick n...@digimed.co.uk wrote:

 On Sun, 6 Nov 2011 11:56:50 +0800, Zhang Jun wrote:

  # emerge -pvutDN world
 
  These are the packages that would be merged, in reverse order:
 
  Calculating dependencies... done!
  [nomerge   ] app-editors/emacs-23.3-r2  USE=X gtk gzip-el jpeg png
  xft xpm -Xaw3d -alsa (-aqua) -athena -dbus -gconf -gif -gpm -hesiod
  -kerberos -livecd -m17n-lib -motif -sound -source -svg -tiff
  -toolkit-scroll-bars [nomerge   ]
  app-emacs/emacs-common-gentoo-1.2-r2  USE=X -emacs22icons
  [ebuild  N ]   virtual/emacs-23  0 kB
  [ebuild  N ]app-editors/emacs-23.3-r2  USE=X gtk gzip-el jpeg
  png xft xpm -Xaw3d -alsa (-aqua) -athena -dbus -gconf -gif -gpm -hesiod
  -kerberos -livecd -m17n-lib -motif -sound -source -svg -tiff
  -toolkit-scroll-bars 37,842 kB
  [ebuild  N ] app-emacs/emacs-common-gentoo-1.2-r2  USE=X
  -emacs22icons 46 kB

 Something wants emacs, but it doesn't appear to be any of your installed
 package. What doe eselect editor list show?


 --
 Neil Bothwick

 *Libra*: /(Sept 23--Oct 23)/ An unfortunate typo on your application
 results in your being accepted into the Legion Of Superherpes.



[gentoo-user] emerge dependence question

2011-11-05 Thread Zhang Jun
# emerge -pvutDN world

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[nomerge   ] app-editors/emacs-23.3-r2  USE=X gtk gzip-el jpeg png xft
xpm -Xaw3d -alsa (-aqua) -athena -dbus -gconf -gif -gpm -hesiod -kerberos
-livecd -m17n-lib -motif -sound -source -svg -tiff -toolkit-scroll-bars
[nomerge   ]  app-emacs/emacs-common-gentoo-1.2-r2  USE=X
-emacs22icons
[ebuild  N ]   virtual/emacs-23  0 kB
[ebuild  N ]app-editors/emacs-23.3-r2  USE=X gtk gzip-el jpeg png
xft xpm -Xaw3d -alsa (-aqua) -athena -dbus -gconf -gif -gpm -hesiod
-kerberos -livecd -m17n-lib -motif -sound -source -svg -tiff
-toolkit-scroll-bars 37,842 kB
[ebuild  N ] app-emacs/emacs-common-gentoo-1.2-r2  USE=X
-emacs22icons 46 kB

Total: 3 packages (3 new), Size of downloads: 37,888 kB


question is, which package makes emerge want to install emacs ?
I used to use emacs from portage, but just unmerged it, want to use a
special version from dev source.

thanks!


Re: [gentoo-user] install nvidia driver and virtualbox for two kernels

2009-11-15 Thread Zhang Jun
great, thanks !

2009/11/15 Alan McKinnon alan.mckin...@gmail.com:
 On Sunday 15 November 2009 04:06:27 Zhang Jun wrote:
 Hi list,

 I want to keep two kernels in my pc, but have some problems on video
 card driver and vbox:

 pc ~ # cd /lib/modules/
 pc modules # ls
 2.6.28-tuxonice-r10-tuxonice  2.6.30-tuxonice-r6
 pc modules # uname -r
 2.6.28-tuxonice-r10-tuxonice
 pc modules # eix -I nvidia
 [I] x11-drivers/nvidia-drivers
  Available versions:  71.86.09!s ~71.86.11!s 96.43.13!s
 173.14.20!s ~173.14.20-r1!s 180.60!s ~185.18.36!s ~185.18.36-r1!s
 ~190.29!s ~190.42-r2!s ~190.42-r3!s {acpi custom-cflags gtk
 kernel_FreeBSD kernel_linux multilib userland_BSD}
  Installed versions:  180.60!s(21时18分12秒 2009年08月16日)(acpi
 kernel_linux -custom-cflags -gtk -multilib)

 ### and I want to install nv driver for another kernel by hand (not emerge)

 pc modules # sh
 /usr/portage/distfiles/NVIDIA-Linux-x86-180.60-pkg0.run -a -K -k
 2.6.30-tuxonice-r6
 Verifying archive integrity... OK
 Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86
 180.60.
 ...

  ERROR: No NVIDIA driver is currently installed; the
 '--kernel-module-only' option can only be used to install the NVIDIA
 kernel module on
   top of an existing driver installation.




 the same problem will be in virtaulbox-modules, though I have not tested.


 how can I install nv driver and vbox-modules for two kernels ?
 thanks!


 Why are you trying to do it by hand? Just use emerge and let portage take care
 of all the housekeeping for you:

 - emerge module-rebuild
 - run module-rebuild populate

 - point /usr/src/linux at the source for the kernel you want to build for
 - run module-rebuild rebuild
 - repeat for each kernel

 The ebuild/driver package is smart enough to install kernel modules in the
 correct directory in /lib/modules/ when you do it this way/

 --
 alan dot mckinnon at gmail dot com





[gentoo-user] install nvidia driver and virtualbox for two kernels

2009-11-14 Thread Zhang Jun
Hi list,

I want to keep two kernels in my pc, but have some problems on video
card driver and vbox:

pc ~ # cd /lib/modules/
pc modules # ls
2.6.28-tuxonice-r10-tuxonice  2.6.30-tuxonice-r6
pc modules # uname -r
2.6.28-tuxonice-r10-tuxonice
pc modules # eix -I nvidia
[I] x11-drivers/nvidia-drivers
 Available versions:  71.86.09!s ~71.86.11!s 96.43.13!s
173.14.20!s ~173.14.20-r1!s 180.60!s ~185.18.36!s ~185.18.36-r1!s
~190.29!s ~190.42-r2!s ~190.42-r3!s {acpi custom-cflags gtk
kernel_FreeBSD kernel_linux multilib userland_BSD}
 Installed versions:  180.60!s(21时18分12秒 2009年08月16日)(acpi
kernel_linux -custom-cflags -gtk -multilib)

### and I want to install nv driver for another kernel by hand (not emerge)

pc modules # sh
/usr/portage/distfiles/NVIDIA-Linux-x86-180.60-pkg0.run -a -K -k
2.6.30-tuxonice-r6
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86
180.60

 ERROR: No NVIDIA driver is currently installed; the
'--kernel-module-only' option can only be used to install the NVIDIA
kernel module on
  top of an existing driver installation.




the same problem will be in virtaulbox-modules, though I have not tested.


how can I install nv driver and vbox-modules for two kernels ?
thanks!



[gentoo-user] emacs transient-mark-mode not work with rxvt-unicode

2009-06-28 Thread Zhang Jun
Hi,

I am using rxvt-unicde and emacs-23, but the emacs
transient-mark-mode(highlight selected region) not work in rxvt,
but it works in xfce terminal,

the following are details

thanks!

[I] x11-terms/rxvt-unicode
 Available versions:  9.02-r1 9.05 (~)9.05-r2 (~)9.05-r3 (~)9.06
{afterimage iso14755 perl singlelinescroll truetype vanilla wcwidth
xterm-color}
 Installed versions:  9.06(21:01:41 06/28/09)(perl truetype
xterm-color -afterimage -iso14755 -singlelinescroll -vanilla -wcwidth)
[I] app-editors/emacs-cvs
 Available versions:  (23)  (~)23.0.93!s (~)23.0.94!s (~)23.0.95!s
[M](~)23.0.-r2!s [M](~)23.1.!s
{X Xaw3d alsa dbus gif gpm gtk gzip-el hesiod jpeg kerberos m17n-lib
motif png sound source svg tiff toolkit-scroll-bars xft xpm}
 Installed versions:  23.0.95(23)!s(07:46:00 06/28/09)(X Xaw3d gif
gtk gzip-el jpeg png xft xpm -alsa -dbus -gpm -hesiod -kerberos
-m17n-lib -motif -sound -source -svg -tiff -toolkit-scroll-bars)


$cat ~/.Xresources
Emacs.FontBackend: xft
Emacs.geometry: 80x39

Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: none
Xft.rgba: rgb

Xft.dpi:96

!! RXVT-unicode setting
URxvt.geometry: 85x30+80+80
URxvt.background:   black
URxvt.foreground:   white
URxvt.scrollBar:False
URxvt.scrollBar_right:  False
URxvt.scrollstyle:  plain
URxvt.perl-ext-common: default,tabbed,-selection-popup,-option-popup
URxvt.secondaryScroll:  True

URxvt.inheritPixmap:False
URxvt.transient-for:windowid
URxvt.visualBell:   False
URxvt.tintColor:grey
URxvt.shading:  500
URxvt.saveLines:1500
URxvt.preeditType:  Root
URxvt.borderLess:   False
URxvt.title:panchoats urxvt

URxvt.font:xft:Dejavu Sans
Mono:Normal:size=11:antialias=True,xft:Microsoft
YaHei:Normal:size=11:antialias=True
URxvt*imFont:xft:Dejavu Sans
Mono:Normal:size=11:antialias=True,xft:Microsoft
YaHei:Normal:size=11:antialias=True
URxvt.boldFont:xft:DejaVu Sans Mono-11:Bold,xft:Microsoft
Yahei-11:Bold:antialias=True

URxvt*inputMethod:SCIM
URxvt*preeditType: OverTheSpot
URxvt*multichar_encoding:noenc

URxvt.color0:   #00
URxvt.color8:   #555753
!Red
URxvt.color1:   #CC
URxvt.color9:   #EF2929
!Green
URxvt.color2:   #4E9A06
URxvt.color10:  #8AE234
!Yellow
URxvt.color3:   #C4A000
URxvt.color11:  #FCE94F
!Blue
URxvt.color4:   #3465A4
URxvt.color12:  #729FCF
!Magenta
URxvt.color5:   #75507B
URxvt.color13:  #AD7FA8
!Cyan
URxvt.color6:   #06989A
URxvt.color14:  #34E2E2
!White
URxvt.color7:   #D3D7CF
URxvt.color15:  #EC

XTerm*preeditType: Root

XTerm*font: -dejavu-dejavu serif-medium-r-normal--0-0-0-0-p-0-iso8859-1
XTerm*wideFont: -dejavu-dejavu serif-medium-r-normal--0-0-0-0-p-0-iso8859-1
Xterm*cjkWidth: True



[gentoo-user] AMD Turion64x2 CFLAGS

2009-02-12 Thread Zhang Jun
Hi list,

my laptop's cpu is AMD Turion64x2, I've installed both 32bits Debian
testing and Gentoo on it,
from Debian there is no SSE3 in /proc/cpuinfo,
and I used CFLAGS=-O2 -march=athlon-xp -fomit-frame-pointer -pipe on
gentoo,  and I can not see SSE3 in cpuinfo also,

I emerged x86info, and SSE3 is in its output:

#x86info
x86info v1.21.  Dave Jones 2001-2007
Feedback to da...@redhat.com.

Found 2 CPUs
--
CPU #1
Family: 15 Model: 72 Stepping: 2
CPU Model : Turion 64 X2 (BH-F2)
Processor name string: AMD Turion(tm) 64 X2 Mobile Technology TL-52

Feature flags:
 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
pse36 clflsh mmx fxsr sse sse2 ht sse3 cmpxchg16b
Extended feature flags:
 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
pse36 nx mmxext mmx fxsr ffxsr rdtscp lm 3dnowext 3dnow lahf/sahf
CmpLegacy svm ExtApicSpace LockMovCr0

SVM: revision 1, 64 ASIDs
Address Size: 48 bits virtual, 40 bits physical
The physical package has 2 of 2 possible cores implemented.
...
...


my question is:  I can not see SSE3 in cpuinfo because I did not use
-msse3 in CFLAGS ?



Re: [gentoo-user] AMD Turion64x2 CFLAGS

2009-02-12 Thread Zhang Jun
thanks!
I'm new to gentoo,
I get the CFLAGS from gentoo-wiki(
http://en.gentoo-wiki.com/wiki/Safe_Cflags/AMD#Turion64_.2F_X2_.2F_Ultra
)
and I am using 32bit linux.

2009/2/12 Joost Roeleveld jo...@antarean.org:
 On Thu, February 12, 2009 12:52 pm, Zhang Jun wrote:
 Hi list,

 my laptop's cpu is AMD Turion64x2, I've installed both 32bits Debian
 testing and Gentoo on it,
 from Debian there is no SSE3 in /proc/cpuinfo,
 and I used CFLAGS=-O2 -march=athlon-xp -fomit-frame-pointer -pipe on
 gentoo,  and I can not see SSE3 in cpuinfo also,

 I emerged x86info, and SSE3 is in its output:

 #x86info
 x86info v1.21.  Dave Jones 2001-2007
 Feedback to da...@redhat.com.

 Found 2 CPUs
 --
 snipped output

 my question is:  I can not see SSE3 in cpuinfo because I did not use
 -msse3 in CFLAGS ?

 Hi,

 I would suspect that for your CPU using -march=athlon-fx would be more
 beneficial as your CPU has the x86_64 instruction set as well?

 --
 Joost






Re: [gentoo-user] AMD Turion64x2 CFLAGS

2009-02-12 Thread Zhang Jun
2009/2/12 Volker Armin Hemmann volkerar...@googlemail.com:
 On Donnerstag 12 Februar 2009, Zhang Jun wrote:
 Hi list,

 my laptop's cpu is AMD Turion64x2, I've installed both 32bits Debian
 testing and Gentoo on it,
 from Debian there is no SSE3 in /proc/cpuinfo,

 I am sure there is. But it is called 'pni' - its original name.


 and I used CFLAGS=-O2 -march=athlon-xp -fomit-frame-pointer -pipe on
 gentoo,  and I can not see SSE3 in cpuinfo also,

 I emerged x86info, and SSE3 is in its output:

 #x86info
 x86info v1.21.  Dave Jones 2001-2007
 Feedback to da...@redhat.com.

 Found 2 CPUs
 --
 CPU #1
 Family: 15 Model: 72 Stepping: 2
 CPU Model : Turion 64 X2 (BH-F2)
 Processor name string: AMD Turion(tm) 64 X2 Mobile Technology TL-52

 Feature flags:
  fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
 pse36 clflsh mmx fxsr sse sse2 ht sse3 cmpxchg16b
 Extended feature flags:
  fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat
 pse36 nx mmxext mmx fxsr ffxsr rdtscp lm 3dnowext 3dnow lahf/sahf
 CmpLegacy svm ExtApicSpace LockMovCr0

 SVM: revision 1, 64 ASIDs
 Address Size: 48 bits virtual, 40 bits physical
 The physical package has 2 of 2 possible cores implemented.
 ...
 ...


 my question is:  I can not see SSE3 in cpuinfo because I did not use
 -msse3 in CFLAGS ?

 no. Because it is called 'pni'.

 How about this cflags:
 march=k8-sse3 -O2 -msse3 (in case march gets filtered) -pipe
 ?
 on amd64 fomit-frame-pointer isn't needed anymore.







thanks, I will add sse3 in my make.conf