Re: Wired fontconfig behavior

2007-09-04 Thread Wang Xu
Additional info:

the following will happen only under zh_CN locale, and when
I change locale to en_US, it will in a correct sequence without
requiring a ``fc-cache'' .

How is the font matching/selection affected by locales?

Thank you!

2007/9/4, Wang Xu [EMAIL PROTECTED]:
 Hi list,

 I set alias of monospace in my ${HOME}/.fonts.conf like this:
  |   alias
  |   familymonospace/family
  |   prefer
  |   familyBitstream Vera Sans Mono/family
  |   familyFZXiYuan-M01S/family
  |   /prefer
  |   /alias
 but with fc-match, I found the latter have a higher position:
  | [EMAIL PROTECTED]:~$ fc-match -s monospace|head
  | fzyljw.ttf: FZXiYuan-M01S Regular
  | VeraMono.ttf: Bitstream Vera Sans Mono Roman
  | ...

 where the FZXiYuan is a Chinese font. Even if I substitute FZXiYuan
 with another Chinese fonts and substitute bitstream with another
 Lattin fonts, it behaviors like above.

 The same thing occured on serif and sans-serif also, however, for
 bitstream fonts, it works well, for instance
  |   alias
  |   familyBitstream Vera Sans Mono/family
  |   prefer
  |   familyBitstream Vera Sans Mono/family
  |   familyFZXiYuan-M01S/family
  |   /prefer
  |   /alias
 and with fc-match:
  | [EMAIL PROTECTED]:~$ fc-match -s Bitstream Vera Sans Mono|head
  | VeraMono.ttf: Bitstream Vera Sans Mono Roman
  | fzyljw.ttf: FZXiYuan-M01S Regular
  |.

 What's wrong with monospace, sans-serif, and serif?

 any ideas?

 Thank you!

 --
 Wang Xu



-- 
Wang Xu


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Wired fontconfig behavior

2007-09-03 Thread Wang Xu
Hi list,

I set alias of monospace in my ${HOME}/.fonts.conf like this:
 |   alias
 |   familymonospace/family
 |   prefer
 |   familyBitstream Vera Sans Mono/family
 |   familyFZXiYuan-M01S/family
 |   /prefer
 |   /alias
but with fc-match, I found the latter have a higher position:
 | [EMAIL PROTECTED]:~$ fc-match -s monospace|head
 | fzyljw.ttf: FZXiYuan-M01S Regular
 | VeraMono.ttf: Bitstream Vera Sans Mono Roman
 | ...

where the FZXiYuan is a Chinese font. Even if I substitute FZXiYuan
with another Chinese fonts and substitute bitstream with another
Lattin fonts, it behaviors like above.

The same thing occured on serif and sans-serif also, however, for
bitstream fonts, it works well, for instance
 |   alias
 |   familyBitstream Vera Sans Mono/family
 |   prefer
 |   familyBitstream Vera Sans Mono/family
 |   familyFZXiYuan-M01S/family
 |   /prefer
 |   /alias
and with fc-match:
 | [EMAIL PROTECTED]:~$ fc-match -s Bitstream Vera Sans Mono|head
 | VeraMono.ttf: Bitstream Vera Sans Mono Roman
 | fzyljw.ttf: FZXiYuan-M01S Regular
 |.

What's wrong with monospace, sans-serif, and serif?

any ideas?

Thank you!

-- 
Wang Xu


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Hal/hotkey/power management problem, hal does not pass some key events to dbus

2007-07-16 Thread Wang Xu

Hi List,

I just installed debian sid on a Thinkpad X60 Laptop, while I
press sleep hotkey, acpid will sent KEY_SLEEP key event as a
keyboard press event, and handled by hal, then managed by
gnome-power-manager.

HOWEVER, when hibernate key pressed, it sent a KEY_SUSPEND
key event, but NOTHING appeared on dbus, and g-p-m did nothing.

In acpid log, both things are handled, and run scripts, which look
like:

| . /usr/share/acpi-support/key-constants
| acpi_fakekey $KEY_SUSPEND

and by dbus-monitor, when $KEY_SLEEP sent, I saw

| signal sender=:1.3 - dest=(null destination)
| 
path=/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input;
| interface=org.freedesktop.Hal.Device; member=Condition
|   string ButtonPressed
|   string sleep

but when hibernate or lock key pressed, i.e. KEY_COFFEE/KEY_SUSPEND
are sent, nothing happend.

Moreover, g-p-m cannot work if I remove the acpi_fakekey line
when I press sleep button, even though the hotkey ACPI events
are also listened by hald-addon-acpi.

Did anyone meet such problem?

Thank you!

--
Wang Xu


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: USB enclosure?

2007-06-17 Thread Wang Xu
On Sun, Jun 17, 2007 at 04:24:34AM -0400, Zach wrote:
 I just bought an external HDD enclosure for my old IDE disks so I can
 attack to my laptop using USB. How do I set this up? I will not always
 have the same IDE disk in there when I boot (there are 3 HDD) nor will
 I even have the enclosure connected to my USB port every time I boot
 up. So how do I handle this? I am running 2.6.18 kernel with udev (and
 no I have no clue how to write udev rules and I hope kernel developers

If you have hal installed, you are not required to write any udev
rules, and you may use pmount mount them or use gnome-volume-manager
mount them automatically if you use gnome.

 abandon udev foolishness in the future and return to devfs + some
 extensions heh). What kernel modules will I need to load setup this
 device and do I just add them to /etc/modules, run depmod -a and
 reboot? And then lsmod to verify they were loaded and just plugin the
 drive enclosure? Do I need create a special device for USB? I would
you do not need manually load any modules at all in most condintions.

 like /etc/fstab to automatically load the enclosure drive if it
 detects it was attached on boot up.
 
 Zach

--
Wang Xu


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: [ in /usr/bin Question

2007-05-09 Thread Wang Xu
On Wed, May 09, 2007 at 09:01:50AM -0400, Tom Grove wrote:
 Hello all...I am new to this Debian thing :-)  I used it in the Woody 
 days but moved over to the FreeBSD world for the last few years.  I 
 recently installed Testing (Lenny) and see the left bracket in my 
 /usr/bin directory and do not know what it is.  When I ls -al it I get:
 
 -rwxr-xr-x 1 root root 24752 2007-01-30 13:51 /usr/bin/[
 
 This leads me to believe that it was installed with the base system or 
 some package because I just installed the system earlier this week.  Any 
 help is much appreciated.  Thanks.

it is test(1)



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



[SOLVED] Re: I2C bus can not find sensors since kernel 2.6.18

2007-05-02 Thread Wang Xu
On Sun, Apr 29, 2007 at 12:59:33PM +0800, gnawux wrote:
 But under 2.6.18 and 2.6.20 kernel, no sensors could be found,
 I enable the debug option of 2.6.20 kernel, and found the following
 error message of i2c bus:
  | PCI: Unable to reserve I/O region #5:[EMAIL PROTECTED] for device 
 :00:1f.3
  | i801_smbus :00:1f.3: Failed to request SMBus region 0xe800-0xe81f
  | i801_smbus: probe of :00:1f.3 failed with error -16

The problem has been finally resolved by modifying the ACPI DSDT.

I found that in /proc/ioports

 | e800-e81f : :00:1f.3
 |  e800-e80f : motherboard

therefore, smbus driver is trying to allocate e800-e81f (0x20) as 
the hints from PCI bus, while the acpi driver `motherboard' had
only requested e800-e80f (0x10), which lead to cannot request 
successfully.

Thus, I dumped the dsdt table and checked it, and modify

Name (SMBS, 0xE800)
Name (SMBL, 0x10)

to

Name (SMBS, 0xE800)
Name (SMBL, 0x20)

with iasl. then integrate the DSDT with initramfs. Everything
become well and do not need change kernel source anymore except
for the customized dsdt patch.

I also upload the customized DSDT table for ASUS M2400Ne laptop
to acpi.sf.net:

http://acpi.sourceforge.net/dsdt/view.php?id=787

Cheers!

Wang Xu


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: I2C bus can not find sensors since kernel 2.6.18

2007-04-30 Thread Wang Xu
On Sun, Apr 29, 2007 at 08:40:37PM -0400, Douglas Allan Tutty wrote:
 On Sun, Apr 29, 2007 at 12:59:33PM +0800, Wang Xu wrote:
  Anyone met similar case?
  
  I have a ASUS M2Ne Laptop, which has Intel ICH4 (i2c-i801) SMBus.
 My only box with sensors is my new Athlon with Asus M2N-SLI Deluxe AM2.
 I had to use Etch when it was testing since Sarge wouldn't boot it.
 Alas, I don't know if a 2.6.16 kernel would have found the sensors but
 the .18 does not.

It is a little bit confused, mine is an ASUS laptop, model M2N, and
it has a same name with your motherboard. Mine has intel 855GM/ICH4
chipset and yours maybe NV nForce5 :)

PS: I reviewed the kernel sources, and migrate some codes from 2.6.16
to 2.6.20. now the sensors works fine again.

Cheers!

Wang Xu


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: I2C bus can not find sensors since kernel 2.6.18

2007-04-30 Thread Wang Xu
On Mon, Apr 30, 2007 at 08:18:09PM -0400, Douglas Allan Tutty wrote:
 On Tue, May 01, 2007 at 08:09:04AM +0800, Wang Xu wrote:
  On Sun, Apr 29, 2007 at 08:40:37PM -0400, Douglas Allan Tutty wrote:
   On Sun, Apr 29, 2007 at 12:59:33PM +0800, Wang Xu wrote:
  
  PS: I reviewed the kernel sources, and migrate some codes from 2.6.16
  to 2.6.20. now the sensors works fine again.
  
 
 Is there an open bug on this to which you can submit your patch, and if
 not, will you submit your patch as a bug report on the kernel package?

I did not find anything related that and sent them to the lm-sensors
project :)

Wang Xu


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



I2C bus can not find sensors since kernel 2.6.18

2007-04-28 Thread Wang Xu
Hi List,

Anyone met similar case?

I have a ASUS M2Ne Laptop, which has Intel ICH4 (i2c-i801) SMBus.

With 2.6.16 and earlier 2.6 kernel, it could find max6657 sensor
and install lm90 module. the sensor result are:
 | [EMAIL PROTECTED]:~$ sensors 
 | max6657-i2c-0-4c
 | Adapter: SMBus I801 adapter at e800
 | M/B Temp:+49°C  (low  =   -55°C, high =  +127°C)   
 | CPU Temp:  +46.9°C  (low  = -54.1°C, high = +51.1°C)   
 | M/B Crit:   +127°C  (hyst =  +117°C)   
 | CPU Crit:   +127°C  (hyst =  +117°C)   

But under 2.6.18 and 2.6.20 kernel, no sensors could be found,
I enable the debug option of 2.6.20 kernel, and found the following
error message of i2c bus:
 | PCI: Unable to reserve I/O region #5:[EMAIL PROTECTED] for device 
:00:1f.3
 | i801_smbus :00:1f.3: Failed to request SMBus region 0xe800-0xe81f
 | i801_smbus: probe of :00:1f.3 failed with error -16

Any suggestion?

Thank you!

Wang Xu


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Updating to 2.6.20 cause unable to start xorg

2007-04-22 Thread Wang Xu

2007/4/20, Ron Johnson [EMAIL PROTECTED]:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 04/20/07 01:54, Wang Xu wrote:
 On Fri, Apr 20, 2007 at 01:42:29AM -0500, Kent West wrote:
 Perhaps try modprobe i810?

 IMHO i810.ko is something about drm,

Something about drm?


I do think so because of the location and dependency of the module:

| spirit:/lib/modules/2.6.20-1-686/kernel/drivers/char/drm# modinfo i810.ko
| filename:   i810.ko
| author: VA Linux Systems Inc.
| description:Intel i810
| license:GPL and additional rights
| vermagic:   2.6.20-1-686 SMP mod_unload 686
| depends:drm


--
Wang Xu


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Updating to 2.6.20 cause unable to start xorg

2007-04-20 Thread Wang Xu
On Fri, Apr 20, 2007 at 01:42:29AM -0500, Kent West wrote:
 Perhaps try modprobe i810?
 
IMHO i810.ko is something about drm, and for 865G chipset, it's
recommended to use i915 instead of i810/i830. And I have tried
i915 already, but nothing happened.

Thank you!

Wang Xu


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Updating to 2.6.20 cause unable to start xorg

2007-04-19 Thread Wang Xu

I have an intel 865G integrated VGA adapter, and it works fine with
kernel 2.6.18 and before. However, when I update it to 2.6.20, the
X server cannot be started, and give the following message


(EE) I810(0): cannot continue
(II) I810(0): VESA BIOS not detected
(EE) I810(0): VBE initialization failed.
.

I tried to use a default X configuration with dpkg-reconfigure xserver-xorg,
but it cannot be started yet. And the only way to start it is to use the
older 2.6.18 kernel.

The attachments are the Xorg.0.log and xorg.conf .

This is the info of kernel:
 Package: linux-image-2.6.20-1-686
 Version: 2.6.20-2

Did anyone else meet the same problem?

Thank you!

--
Wang Xu

X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: UNKNOWN 
Current Operating System: Linux spirit 2.6.20-1-686 #1 SMP Sun Apr 15 21:03:57 UTC 2007 i686
Build Date: 04 April 2007
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Module Loader present
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: Fri Apr 20 12:45:17 2007
(==) Using config file: /etc/X11/xorg.conf
(==) ServerLayout Default Layout
(**) |--Screen Default Screen (0)
(**) |   |--Monitor Generic Monitor
(**) |   |--Device Intel Corporation 82865G Integrated Graphics Controller
(**) |--Input Device Generic Keyboard
(**) |--Input Device Configured Mouse
(WW) No FontPath specified.  Using compiled-in default.
(WW) `fonts.dir' not found (or not valid) in /usr/X11R6/lib/X11/fonts/misc.
	Entry deleted from font path.
	(Run 'mkfontdir' on /usr/X11R6/lib/X11/fonts/misc).
(WW) The directory /usr/share/fonts/X11/cyrillic does not exist.
	Entry deleted from font path.
(WW) `fonts.dir' not found (or not valid) in /usr/X11R6/lib/X11/fonts/Type1.
	Entry deleted from font path.
	(Run 'mkfontdir' on /usr/X11R6/lib/X11/fonts/Type1).
(==) 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
(==) RgbPath set to /etc/X11/rgb
(==) ModulePath set to /usr/lib/xorg/modules
(II) Open ACPI successful (/var/run/acpid.socket)
(II) Module ABI versions:
	X.Org ANSI C Emulation: 0.3
	X.Org Video Driver: 1.0
	X.Org XInput driver : 0.6
	X.Org Server Extension : 0.3
	X.Org Font Renderer : 0.5
(II) Loader running on linux
(II) LoadModule: bitmap
(II) Loading /usr/lib/xorg/modules/fonts/libbitmap.so
(II) Module bitmap: vendor=X.Org Foundation
	compiled for 7.1.1, module version = 1.0.0
	Module class: X.Org Font Renderer
	ABI class: X.Org Font Renderer, version 0.5
(II) Loading font Bitmap
(II) LoadModule: pcidata
(II) Loading /usr/lib/xorg/modules/libpcidata.so
(II) Module pcidata: vendor=X.Org Foundation
	compiled for 7.1.1, module version = 1.0.0
	ABI class: X.Org Video Driver, version 1.0
(--) using VT number 7

(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:00:0: chip 8086,2570 card 1043,80f2 rev 02 class 06,00,00 hdr 00
(II) PCI: 00:02:0: chip 8086,2572 card 1043,80a5 rev 02 class 03,00,00 hdr 00
(II) PCI: 00:1d:0: chip 8086,24d2 card 1043,80a6 rev 02 class 0c,03,00 hdr 80
(II) PCI: 00:1d:1: chip 8086,24d4 card 1043,80a6 rev 02 class 0c,03,00 hdr 00
(II) PCI: 00:1d:2: chip 8086,24d7 card 1043,80a6 rev 02 class 0c,03,00 hdr 00
(II) PCI: 00:1d:3: chip 8086,24de card 1043,80a6 rev 02 class 0c,03,00 hdr 00
(II) PCI: 00:1d:7: chip 8086,24dd card 1043,80a6 rev 02 class 0c,03,20 hdr 00
(II) PCI: 00:1e:0: chip 8086,244e card , rev c2 class 06,04,00 hdr 01
(II) PCI: 00:1f:0: chip 8086,24d0 card , rev 02 class 06,01,00 hdr 80
(II) PCI: 00:1f:1: chip 8086,24db card 1043,80a6 rev 02 class 01,01,8a hdr 00
(II) PCI: 00:1f:3: chip 8086,24d3 card 1043,80a6 rev 02 class 0c,05,00 hdr 00
(II) PCI: 00:1f:5: chip 8086,24d5 card 1043,810f rev 02 class 04,01,00 hdr 00
(II) PCI: 01:0d:0: chip 10ec,8139 card 1043,8109 rev 10 class 02,00,00 hdr 00
(II) PCI: End of PCI scan
(II) Intel Bridge workaround enabled
(II) Host-to-PCI bridge:
(II) Bus 0: bridge is at (0:0:0), (0,0,1), BCTRL: 0x0008 (VGA_EN is set)
(II) Bus 0 I/O range:
	[0] -1	0	0x - 0x (0x1) IX[B]
(II) Bus 0 non-prefetchable memory range:
	[0] -1	0	0x - 0x (0x0) MX[B]
(II) Bus 0 prefetchable memory range:
	[0] -1	0	0x - 0x (0x0) MX[B]
(II) Subtractive PCI-to-PCI bridge:
(II) Bus 1: bridge is at (0:30:0), (0,1,1), BCTRL: 0x0002 (VGA_EN is cleared)
(II) Bus 1 I/O range:
	[0] -1	0	0xe000 - 0xefff (0x1000) IX[B]
(II) Bus 1 non-prefetchable memory range:
	[0] -1	0	0xfbf0 - 0xfbff (0x10) MX[B]
(II) PCI-to-ISA bridge:
(II) Bus -1: bridge is at (0:31:0), (0,-1,-1), BCTRL

How to work with a Wireless Projector

2007-03-25 Thread Wang Xu

I met a Panasonic PT-LB50NTU 802.11b/g wireless projector, and could not
connect with it.  It has an driver which can only work with windows
and need DirectX.

Through Kismet, I found a laptop working with it through TCP connections
to its 12000/12004 port.

Any suggestion?

--
Wang Xu


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: USB Flash Memory permissions

2007-01-27 Thread Wang Xu
On Sat, Jan 27, 2007 at 01:49:39PM +, John Talbut wrote:
 As I understand it, Gnome Volume Manager, invokes pmount-hal which passes 
 back settings from hal and hal gets settings from udev.  I have looked 
 through the various udev rules files and anything to do with hal and I 
 cannot work out how I end up with the line:
 
 /dev/myFlash /media/usbdisk vfat 
 rw,noexec,nosuid,nodev,quiet,shortname=mixed,uid=1000,gid=1000,umask=077,iocharset=utf8
  
 0 0
 
 in /etc/mtab , particularly the umask=077 .  Does anyone know where this 
 value comes from and hence what to change in order to change the 
 permissions?

Did you ever check the ``mount_option'' written in 
/etc/hal/fdi/policy/preferences.fdi ?

--
Wang Xu


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Aiglx and xorg 7.1

2006-11-09 Thread Wang Xu

2006/11/9, Margiolas Christos [EMAIL PROTECTED]:

Hello I informed on web that aiglx merged to xorg,  how I can enable aiglx
on xorg 7.1?


AIGLX is default enabled in xorg 7.1, which is shipped with sid (and etch?),
and you should enable composite extension if you want to try compiz. Add
this section in xorg.conf:

Section Extensions
   Option Composite Enable
EndSection



Thanks in advance
Christos




--
Wang Xu


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: no $DISPLAY with ssh -X

2006-10-14 Thread Wang Xu

2006/10/14, Artem Zolochevskiy [EMAIL PROTECTED]:

[EMAIL PROTECTED] ~]$ ssh -X [EMAIL PROTECTED]

[EMAIL PROTECTED]:~$ xterm
xterm Xt error: Can't open display:
xterm:  DISPLAY is not set
[EMAIL PROTECTED]:~$ echo $DISPLAY

[EMAIL PROTECTED]:~$


I had met such a case days ago, finally I found
the ``lo'' interface was not up.
after correct interfaces file and ifup lo, it works.

however, i think it is not a common case and you
may try with ssh -Y .

Regards,

--
Wang Xu


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: LaTeX: C package

2006-09-12 Thread WANG Xu
On Tue, Sep 12, 2006 at 10:53:27PM -0300, Romulo Sousa wrote:
 Hi folks,
 
 How can I do to add a C code on my LaTeX? I'm looking for the
 usepackage (also on the lshort.pdf) but I can't find it.

You may try listings macro package for that, and it is
provided by tetex-extra

--
Wang Xu


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: where is glxgears now ?

2006-09-03 Thread Wang Xu

2006/9/3, Gerard Robin [EMAIL PROTECTED]:

Hello,
I installed the package xbase-clients 7.1.ds-3 and I don't find
glxgears.
where is glxgears now ?


It's in mesa-utils now. :)

--
Wang Xu


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: An SSH X11Forwarding problem

2006-08-09 Thread Wang Xu

2006/8/9, Liam O'Toole [EMAIL PROTECTED]:


What is the output of the command


It is said the DISPLAY is not set, which is the fact.
| [EMAIL PROTECTED]:~$ xterm
| xterm Xt error: Can't open display:
| xterm:  DISPLAY is not set



grep X11 /etc/ssh/sshd_config

on both machines?


On both machines, the sshd_config are identical as
the attachments in the previous mail

host A:
| [EMAIL PROTECTED]:~$ grep X11 /etc/ssh/sshd_config
| X11Forwarding yes
| X11DisplayOffset 10

host B:
| [EMAIL PROTECTED]:~$ grep  X11 /etc/ssh/sshd_config
| X11Forwarding yes
| X11DisplayOffset 10


Thank you!

--
Wang Xu


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




[Solved] Re: An SSH X11Forwarding problem

2006-08-09 Thread Wang Xu

A stupid problem, sorry for noisy.

I finally found the ``lo'' interfaces is down in host A,
thus the $DISPLAY can not be set as
localhost:10.0 since the localhost does not exist.

Thanks all!



--
Wang Xu


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




An SSH X11Forwarding problem

2006-08-08 Thread Wang Xu

Hi list,

I have two Debian Sid box, form A access B with

| ssh -X B

I can open x application (such as xterm or eog...) well.
However, from host B

| ssh -X A

I found there is no DISPLAY environment var, and even
I manually indicated it as localhost:10.0, just as
from A to B, xterm cannot be started as well (it has
no response until I kill it with Ctrl-C).

Both of them have the most recently openssh (4.3p2-3),
an vith the same configurations (the default configuration
with x11forwarding enabled, as in attachments).

Does anyone have solved the same problem, or any
indication?

Thank you!

--
Wang Xu


sshd_config
Description: Binary data


ssh_config
Description: Binary data


Re: An SSH X11Forwarding problem

2006-08-08 Thread Wang Xu

2006/8/9, Ali Milis [EMAIL PROTECTED]:

 I can open x application (such as xterm or eog...) well.
 However, from host B

  | ssh -X A

 I found there is no DISPLAY environment var,

Are you allowed to run X (e.g xlock) from B locally?
(i.e. without ssh to another host?).



Yes, both of them can run xlock locally.

And both of them can ssh -X login an old red hat box and
run xterm.

I wonder whether it is some problem of X configuration.

Thank you.

--
Wang Xu


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: debootstap problem

2006-08-05 Thread Wang Xu
2006/8/5, S. M. Ibrahim (Lavlu) [EMAIL PROTECTED]:



  
  


debootstrap sid /sid-root/ http://mirrors.kernel.org/debian
after some download i got this messege:
E: Couldn't download base-config

The base-config package has been purged for months. :)-- Wang Xu


Re: Gaim 2 beta?

2006-08-05 Thread Wang Xu

Hi Mathias,

2006/8/5, Mathias [EMAIL PROTECTED]:

Does anyone know any Gaim 2 beta packages for Etch or SID? I'm really
interested in trying this version on linux. I didn't get very far with the
source and the rpm is saying the SSL is missing when I try connecting to
MSN.

It has already been in experimental for days. You can try it.

--
Wang Xu


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: location of header file after install gsl

2006-07-20 Thread Wang Xu

2006/7/21, Fred J. [EMAIL PROTECTED]:

hi

 debian/testing 2.6.15
 I just installed  gsl-bin  and
gsl-ref-html then went looking for the .h files its docs says to include in
your c++ program but did not find any, i.e
 $locate gsl_math.h
 $ file not found
 $dpkg -l confirms installation with no problems.


I think you should also install libgsl0 and libgsl0-dev

--
Wang Xu


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




What does this mean (A SMART error of hard disk)?

2006-06-12 Thread Wang Xu

Hi list,

The following message was reported by smartd daemon several times,
it seems to be a hard disk error, but does this mean I should purchase
a new disk as soon as possible?

I checked the log file but got nothing.

The message:

*
This email was generated by the smartd daemon running on:

  host name: inspiration
 DNS domain: localdomain
 NIS domain: (none)

The following warning/error was logged by the smartd daemon:

Device: /dev/hda, 1 Currently unreadable (pending) sectors

For details see host's SYSLOG (default: /var/log/messages).

You can also use the smartctl utility for further investigation.
No additional email messages about this problem will be sent.

*

Thank you!

--
Wang Xu


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: What happened to glxgears?

2006-04-17 Thread Wang Xu
2006/4/17, David Goodenough [EMAIL PROTECTED]:
 According to apt-file glxgears is in xbse-clients, but according to dpkg -c it
 is not in the latest version.  Has it moved to another package or has it
 been dropped.

It is in mesa-utils now.



Re: gdm会造成不读取.xs ession

2005-12-15 Thread WANG Xu
On Thu, Dec 15, 2005 at 11:51:26PM +0800, cathayan wrote:
 很郁闷的错误,不知道为什么。起因是我一时想起来Gnome,就在gdm里面切换到Gnome里去看了下,再回来时还是进入了缺省的Xfce4,就这么一个简单的切换,把输入法搞死了,可以运行scim或是Fcitx,就是叫不出输入法。
 
 仔细观察发现,.xsession不知为何被略过了,到/etc/X11/下面去看,也一无所获。
 
 郁闷间想起再用gdm一下会不会恢复。果然在gdm上再选择一次窗口管理器,这回选了一下xfce,进来居然就是好的了。
 
 不明白什么原因。gdm是 2.8.0.6-1。
Select ``default'' in the gdm session menu.

PS. If you want to ask in Chinese, please send mail to 
[EMAIL PROTECTED]

Wang Xu
Select ``default'' in the gdm session menu.

PS. If you want to ask in Chinese, please send mail to 
[EMAIL PROTECTED]

Wang Xu
 
 --
 [EMAIL PROTECTED]
 http://blog.cathayan.org


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Suspending with ACPI

2005-12-08 Thread WANG Xu
On Thu, Dec 08, 2005 at 07:54:04PM +0200, Matti P?ll? wrote:
 The kernel log tells me that mysqld couldn't be stopped. So, when I
 stop mysqld manually and unload modules uhci_hcd and ehci_hcd, I can
 get the machine to 'standby' state but 'mem' and 'disk' have no
 effect.
What is the result of ``cat /sys/power/state''

For example, my box can suspend to disk or memory, then
| [EMAIL PROTECTED]:/sys/power$ cat state
| standby mem disk
| [EMAIL PROTECTED]:/sys/power$

And for suspend to disk, you need specify the swap partition in
kernel parameter ``resume''.
| [EMAIL PROTECTED]:~$ cat /proc/cmdline
| root=/dev/hda7 ro vga=794 resume=/dev/hda8
| [EMAIL PROTECTED]:~$

Wang Xu


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



root cannot su to normal user now

2005-09-29 Thread Wang Xu
Hi All,

I have 2 linux computer, one is running testing, and the other is running
unstable.

Now the sid one cannot use `su' to change from root to any user, including
itself.

cannot su - xx
cannot su xx
cannot su xx -c 'command'

but the 'su -c' is improtant for the acpid script for the button of laptop.

The libpam0g version in the sid machine is 0.79-1, and in the etch machine
is 0.76-23, and

I did enable the
  ``auth sufficient pam_rootok.so''
in ``/etc/pam.d/su''

and enable the wheel group in it.

Any advices? Many thanks.

The following is my /etc/pam.d/su, while other setting about pam and login
is shipped with the distribution.



#
# The PAM configuration file for the Shadow `su' service
#

# Uncomment this to force users to be a member of group root
# before they can use `su'. You can also add group=foo to
# to the end of this line if you want to use a group other
# than the default root.
# (Replaces the `SU_WHEEL_ONLY' option from login.defs)
auth   required   pam_wheel.so group=adm

# Uncomment this if you want wheel members to be able to
# su without a password.
auth   sufficient pam_wheel.so trust group=adm

# Uncomment this if you want members of a specific group to not
# be allowed to use su at all.
auth   required   pam_wheel.so deny group=nosu

# This allows root to su without passwords (normal operation)
auth   sufficient pam_rootok.so

# Uncomment and edit /etc/security/time.conf if you need to set
# time restrainst on su usage.
# (Replaces the `PORTTIME_CHECKS_ENAB' option from login.defs
# as well as /etc/porttime)
# accountrequisite  pam_time.so

# The standard Unix authentication modules, used with
# NIS (man nsswitch) as well as normal /etc/passwd and
# /etc/shadow entries.
@include common-auth
@include common-account
@include common-session

# Sets up user limits, please uncomment and read /etc/security/limits.conf
# to enable this functionality.
# (Replaces the use of /etc/limits in old login)
# sessionrequired   pam_limits.so



Re: root cannot su to normal user now

2005-09-29 Thread Wang Xu
2005/9/30, Stephen Cormier [EMAIL PROTECTED]:
 Try upgrading the login package I think you may have run into bug
 #330291.


Thank you!

However, the version of my `login' has already been `4.0.12-5' as
suggested in `Bug #330291'

--
==
WANG, Xu
Ph.D. Candidate
Service  Terminal lab,
Wireless Technology Innovation Institute,
Beijing University of Posts  Telecommunications (BUPT)
Postal Add.: P.O. Box 92#, BUPT, Bei Jing 100876, China
Tel.: +86-10-62283699 ext. 311
Fax.: +86-10-62283553
E-mail: gnawux (at) gmail.com
Blog: http://gnawux.blogchina.com
==



Re: root cannot su to normal user now

2005-09-29 Thread Wang Xu
2005/9/30, Wang Xu [EMAIL PROTECTED]:
 Hi All,

 I have 2 linux computer, one is running testing, and the other is running
 unstable.

 Now the sid one cannot use `su' to change from root to any user, including
 itself.

additional information:

I found there were some problems about wheel group setting.

1) For the previous described setting, members of wheel group can su to any
   user without typing passwd, while they can only su to root without passwd
   before.

2) After disabling the wheel group setting, root can su to any user it want.

Thank you!



Re: lm-sensors bug?

2005-09-12 Thread Wang Xu
2005/9/13, wim [EMAIL PROTECTED]:
 
 I'm also trying to insert the module for the GL518SM Chipset, but tha's
 failing. Could this be a bug in the driver?
 
 slayer:~# insmod /lib/modules/2.6.8-2-686/kernel/drivers/i2c/chips/gl518sm.ko
 insmod: error inserting 
 '/lib/modules/2.6.8-2-686/kernel/drivers/i2c/chips/gl518sm.ko': -1 Unknown 
 symbol in module
 
try modprobe instead of insmod, that may help



Re: bootsplash

2005-09-11 Thread Wang Xu
 The exact error is:
 'You passed an unappropriate mode number..' and i have to press
 'return' to see an available choice about:
 80x40
 80x30
 80x32
 etc...
 
 mess-mate


And did you build framebuffer support into kernel? It should be
built into kernel directly rather than as modules.


-- 
==
WANG, Xu
Ph.D. Candidate
Service  Terminal lab,
Wireless Technology Innovation Institute,
Beijing University of Posts  Telecommunications (BUPT)
Postal Add.: P.O. Box 92#, BUPT, Bei Jing 100876, China
Tel.: +86-10-62283699 ext. 311
Fax.: +86-10-62283553
E-mail: [EMAIL PROTECTED]
Blog: http://gnawux.blogchina.com
==



Re: which netinstal is for

2005-09-11 Thread Wang Xu
2005/9/12, Rodney D. Myers [EMAIL PROTECTED]:
 I'm getting ready to upgrade my other system to the AMD 64 Athlon
 series of processors .
 
 Which netinstall cdrom is the correct? the
 debian-testing-ia64-netinst.iso

ia64 is for intel itanium processor rather than amd64, it's not
for you.



Re: cdrecord won't work - kernel 2.6.10

2005-09-11 Thread Wang Xu
2005/9/12, Erdi Balint [EMAIL PROTECTED]:
 Hi Wang,
 
 Thanks for the support. Unfortunately, it did not work.
 
 Finally I could burn a cd with the dev=/dev/hdc setting but I could not
 read the freshly read cd after, the error message was 'Unable to
 identify CD-ROM format.' Which mode do you burn disks in? Raw96r?


You can try

   cdrecord dev=ATA:1,0,0 -scanbus

for me, I did not indicate any additional parameter when burning CD,
just use ``tao'' mode as default.

good luck!

 
 Thank you,
 Balint
 
 
 Wang Xu wrote:
  2005/9/11, Erdi Balint [EMAIL PROTECTED]:
 
 Have any of you managed to burn cd-s with kernel 2.6.10? (cdrecord
 explicitly says that there can be issues with kernel 2.6.x but I figured
 these could be sorted out somehow). Or maybe with kernels 2.6.x (x10)?
 Could you advise anything in this matter? Has the ide_cd solution
 developped overtime and can now be used?
 
 
  Yes, it posts warnings, but it works perfect with parameter
  dev=ATA:1,0,0 with my ASUS M2416NE laptop and my desktop.
 
  have fun
 
  Wang Xu
 
 
 
 


-- 
==
WANG, Xu
Ph.D. Candidate
Service  Terminal lab,
Wireless Technology Innovation Institute,
Beijing University of Posts  Telecommunications (BUPT)
Postal Add.: P.O. Box 92#, BUPT, Bei Jing 100876, China
Tel.: +86-10-62283699 ext. 311
Fax.: +86-10-62283553
E-mail: [EMAIL PROTECTED]
Blog: http://gnawux.blogchina.com
==



Re: Can't change XF86Config-4 (Sarge i386)

2005-07-28 Thread Wang Xu
 But the changes I make using dpkg-reconfigure xserver-xfree86 doesn't
 change anything in my XF86Config-4 file.
 
Try `dexconf' after `dpkg-reconfigure xserver-xfree86'.

It may help.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: CDrecord won't burn under kernel 2.6.8

2005-07-18 Thread Wang Xu
 [and please don't reffer me to that k3b branch again, because it's not
 a perms issue]
 
 I can't scanbus, and I can't burn, I get the following message:
try 

cdrecord dev=ATA: -scanbus

 cdrecord: Warning: Linux-2.6.8 introduced incompatible interface changes.
 cdrecord: Warning: SCSI transport does no longer work for suid root programs.
 cdrecord: Warning: if cdrecord fails, try to run it from a root account.
 cdrecord: Operation not permitted. WARNING: Cannot do mlockall(2).
 cdrecord: WARNING: This causes a high risk for buffer underruns.
 cdrecord: Operation not permitted. WARNING: Cannot set RR-scheduler
 cdrecord: Permission denied. WARNING: Cannot set priority using setpriority().
 cdrecord: WARNING: This causes a high risk for buffer underruns.
 scsidev: '0,0,0'
 scsibus: 0 target: 0 lun: 0
 cdrecord: No such file or directory. Cannot open '/dev/pg0'. Cannot
 open SCSI driver.
 cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are 
 root.
 cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
 cdrecord:
 cdrecord: For more information, install the cdrtools-doc
 cdrecord: package and read /usr/share/doc/cdrecord/README.ATAPI.setup .
 
 
-- 
==
WANG, Xu
Ph.D. Candidate
Service  Terminal lab,
Wireless Technology Innovation Institute,
Beijing University of Posts  Telecommunications (BUPT)
Postal Add.: P.O. Box 92#, BUPT, Bei Jing 100876, China
Tel.: +86-10-62283699 ext. 311
Fax.: +86-10-62283553
E-mail: [EMAIL PROTECTED]
== 




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Pinnacle pctv stereo no sound

2005-07-17 Thread Wang Xu
 Hi,
 
 I'm using debian sarge with kernel 2.6.8. I have problem getting sound
 to work for my tv tuner which is Pinnacle Pctv stereo with saa7134
 chipset. I have the internal audio connector connected to Aux in on my
 sound card. I can get the picture but there is no sound, just a
 background noise. When installing the modules I do this:
 
 #modporbe bttv card=1
 #modprobe tuner type=5
 #modprobe saa7134
 
 Thanks in advance for your help.
 
 
Have you had tvaudio module loaded?

And try signal source TV(mono) rather than TV might help. I've
never used this card, so can not give more info.

Regards,

-- 
==
WANG, Xu
Ph.D. Candidate
Service  Terminal lab,
Wireless Technology Innovation Institute,
Beijing University of Posts  Telecommunications (BUPT)
Postal Add.: P.O. Box 92#, BUPT, Bei Jing 100876, China
Tel.: +86-10-62283699 ext. 311
Fax.: +86-10-62283553
E-mail: [EMAIL PROTECTED]
== 




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]