Re: [gentoo-user] USB mass storage device slow in Gentoo, fast in Windows...?

2009-12-26 Thread Paul Hartman
On Sat, Dec 26, 2009 at 7:00 PM, Hung Dang  wrote:
> On 12/26/09 15:54, Paul Hartman wrote:
>> Hi,
>>
>> I got a Nokia N900 linux internet tablet/phone a few days ago, and
>> when I connect it in USB Mass Storage mode to a Windows Vista computer
>> I can write at 17MB/sec, but when I connect it to my Gentoo box my
>> writes are really slow, between 500-900kb/sec depending on if I mount
>> in "sync" mode or not. As far as I know it should be just a totally
>> standard/generic mass storage device. (there were no drivers or
>> software install needed in windows, it just worked)
>>
>> Other USB devices plugged into the same port go full speed, and AFAIK
>> everything appears as if it should be high speed USB 2.0. Has anyone
>> seen something like this before? I'm not sure what the deal is. It
>> takes 20 minutes to copy 1 gigabyte from Linux and takes just under 1
>> minute to do the same in Windows.
>>
>> I'm not sure about debugging USB or what the options are. Everything
>> I've used previously has worked without any hassle.
> Have you received a lot of debugging messages at the output of dmesg
> when copying files?
>
> Hung

No errors, no strange messages at all, it seems normal (only slow). I
have other USB devices like SD card reader, external HDD, and they
perform at full speed when plugged into the same port, so it's weird
to me.

Thanks
Paul



Re: [gentoo-user] USB mass storage device slow in Gentoo, fast in Windows...?

2009-12-26 Thread Hung Dang
Have you received a lot of debugging messages at the output of dmesg
when copying files?

Hung

On 12/26/09 15:54, Paul Hartman wrote:
> Hi,
>
> I got a Nokia N900 linux internet tablet/phone a few days ago, and
> when I connect it in USB Mass Storage mode to a Windows Vista computer
> I can write at 17MB/sec, but when I connect it to my Gentoo box my
> writes are really slow, between 500-900kb/sec depending on if I mount
> in "sync" mode or not. As far as I know it should be just a totally
> standard/generic mass storage device. (there were no drivers or
> software install needed in windows, it just worked)
>
> Other USB devices plugged into the same port go full speed, and AFAIK
> everything appears as if it should be high speed USB 2.0. Has anyone
> seen something like this before? I'm not sure what the deal is. It
> takes 20 minutes to copy 1 gigabyte from Linux and takes just under 1
> minute to do the same in Windows.
>
> I'm not sure about debugging USB or what the options are. Everything
> I've used previously has worked without any hassle.
>
> lsusb -vv output for this device:
>
> Bus 001 Device 031: ID 0421:01c7 Nokia Mobile Phones
> Device Descriptor:
>   bLength18
>   bDescriptorType 1
>   bcdUSB   2.00
>   bDeviceClass0 (Defined at Interface level)
>   bDeviceSubClass 0
>   bDeviceProtocol 0
>   bMaxPacketSize064
>   idVendor   0x0421 Nokia Mobile Phones
>   idProduct  0x01c7
>   bcdDevice3.16
>   iManufacturer   1 Nokia
>   iProduct2 N900 (Storage Mode)
>   iSerial 3 (censored)
>   bNumConfigurations  2
>   Configuration Descriptor:
> bLength 9
> bDescriptorType 2
> wTotalLength   32
> bNumInterfaces  1
> bConfigurationValue 1
> iConfiguration  4 Max power
> bmAttributes 0x80
>   (Bus Powered)
> MaxPower  500mA
> Interface Descriptor:
>   bLength 9
>   bDescriptorType 4
>   bInterfaceNumber0
>   bAlternateSetting   0
>   bNumEndpoints   2
>   bInterfaceClass 8 Mass Storage
>   bInterfaceSubClass  6 SCSI
>   bInterfaceProtocol 80 Bulk (Zip)
>   iInterface  6 Mass Storage
>   Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x81  EP 1 IN
> bmAttributes2
>   Transfer TypeBulk
>   Synch Type   None
>   Usage Type   Data
> wMaxPacketSize 0x0200  1x 512 bytes
> bInterval   0
>   Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x01  EP 1 OUT
> bmAttributes2
>   Transfer TypeBulk
>   Synch Type   None
>   Usage Type   Data
> wMaxPacketSize 0x0200  1x 512 bytes
> bInterval   1
>   Configuration Descriptor:
> bLength 9
> bDescriptorType 2
> wTotalLength   32
> bNumInterfaces  1
> bConfigurationValue 2
> iConfiguration  5 Self-powered
> bmAttributes 0xc0
>   Self Powered
> MaxPower  100mA
> Interface Descriptor:
>   bLength 9
>   bDescriptorType 4
>   bInterfaceNumber0
>   bAlternateSetting   0
>   bNumEndpoints   2
>   bInterfaceClass 8 Mass Storage
>   bInterfaceSubClass  6 SCSI
>   bInterfaceProtocol 80 Bulk (Zip)
>   iInterface  6 Mass Storage
>   Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x81  EP 1 IN
> bmAttributes2
>   Transfer TypeBulk
>   Synch Type   None
>   Usage Type   Data
> wMaxPacketSize 0x0200  1x 512 bytes
> bInterval   0
>   Endpoint Descriptor:
> bLength 7
> bDescriptorType 5
> bEndpointAddress 0x01  EP 1 OUT
> bmAttributes2
>   Transfer TypeBulk
>   Synch Type   None
>   Usage Type   Data
> wMaxPacketSize 0x0200  1x 512 bytes
> bInterval   1
> Device Qualifier (for other device speed):
>   bLength10
>   bDescriptorType 6
>   bcdUSB   2.00
>   bDeviceClass0 (Defined at Interface level)
>   bDeviceSubClass 0
>   bDeviceProtocol 0
>   bMaxPacketSize064
>   bNumConfigurations  2
> Device Status: 0x000

Re: [gentoo-user] Spellcheck not working in Kmail - solved

2009-12-26 Thread Daniel D Jones
On Thursday 24 December 2009 17:16:12 Daniel D Jones wrote:
> Options/Automatic Spellchecking is checked and the status line at the
>  bottom of Composer shows "Spellcheck: on."  Manually selecting
>  Tools/Spelling shows the message "Spell check complete."  But no mispelled
>  words are marked, including nonsense strings like "lakjdfh."
> 
> ispell is installed.  I can go to a command line and run the ispell
>  program, which allows you to manually enter words.  Correctly spelled
>  English words get a response of "OK."  MIsspelled words get a  response of
>  "Not Found."  That seems to indicate that ispell is installed, the English
>  dictionary is installed, and all is functioning normally.
> 
> Anyone have a clue why it's not working in Kmail Composer?
> 

Enabling the "spell" euse flag and recompiling fixed the issue.

-- 
"Luck can't last a lifetime unless you die young." - Russell Banks



[gentoo-user] USB mass storage device slow in Gentoo, fast in Windows...?

2009-12-26 Thread Paul Hartman
Hi,

I got a Nokia N900 linux internet tablet/phone a few days ago, and
when I connect it in USB Mass Storage mode to a Windows Vista computer
I can write at 17MB/sec, but when I connect it to my Gentoo box my
writes are really slow, between 500-900kb/sec depending on if I mount
in "sync" mode or not. As far as I know it should be just a totally
standard/generic mass storage device. (there were no drivers or
software install needed in windows, it just worked)

Other USB devices plugged into the same port go full speed, and AFAIK
everything appears as if it should be high speed USB 2.0. Has anyone
seen something like this before? I'm not sure what the deal is. It
takes 20 minutes to copy 1 gigabyte from Linux and takes just under 1
minute to do the same in Windows.

I'm not sure about debugging USB or what the options are. Everything
I've used previously has worked without any hassle.

lsusb -vv output for this device:

Bus 001 Device 031: ID 0421:01c7 Nokia Mobile Phones
Device Descriptor:
  bLength18
  bDescriptorType 1
  bcdUSB   2.00
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize064
  idVendor   0x0421 Nokia Mobile Phones
  idProduct  0x01c7
  bcdDevice3.16
  iManufacturer   1 Nokia
  iProduct2 N900 (Storage Mode)
  iSerial 3 (censored)
  bNumConfigurations  2
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   32
bNumInterfaces  1
bConfigurationValue 1
iConfiguration  4 Max power
bmAttributes 0x80
  (Bus Powered)
MaxPower  500mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   2
  bInterfaceClass 8 Mass Storage
  bInterfaceSubClass  6 SCSI
  bInterfaceProtocol 80 Bulk (Zip)
  iInterface  6 Mass Storage
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval   0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01  EP 1 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval   1
  Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength   32
bNumInterfaces  1
bConfigurationValue 2
iConfiguration  5 Self-powered
bmAttributes 0xc0
  Self Powered
MaxPower  100mA
Interface Descriptor:
  bLength 9
  bDescriptorType 4
  bInterfaceNumber0
  bAlternateSetting   0
  bNumEndpoints   2
  bInterfaceClass 8 Mass Storage
  bInterfaceSubClass  6 SCSI
  bInterfaceProtocol 80 Bulk (Zip)
  iInterface  6 Mass Storage
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81  EP 1 IN
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval   0
  Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01  EP 1 OUT
bmAttributes2
  Transfer TypeBulk
  Synch Type   None
  Usage Type   Data
wMaxPacketSize 0x0200  1x 512 bytes
bInterval   1
Device Qualifier (for other device speed):
  bLength10
  bDescriptorType 6
  bcdUSB   2.00
  bDeviceClass0 (Defined at Interface level)
  bDeviceSubClass 0
  bDeviceProtocol 0
  bMaxPacketSize064
  bNumConfigurations  2
Device Status: 0x
  (Bus Powered)



dmesg output when it is plugged in:

[2920730.031010] usb 1-4: new high speed USB device using ehci_hcd and
address 31
[2920730.146451] usb 1-4: New USB device found, idVendor=0421, idProduct=01c7
[2920730.146455] usb 1-4: New USB device strings: Mfr=1, Product=2,
SerialNumber=3
[2920730.146458] usb 1-4: Product: N900 (Storage Mode)
[2920730.146460] usb 1-4: Ma

Re: [gentoo-user] The Great Macbook Update 3: Qt-4.5.1 to Qt-4.5.3 blocks hell

2009-12-26 Thread Alan McKinnon
On Saturday 26 December 2009 23:29:32 bn wrote:
> Hi,
> 
> I have finally updated from kde 3.5 to kde-base 4.3
> 
> Everything smooth so far, but when I try to install, for example,
> kdeplasma-addons, a blocks hell comes out.
> 
> This is the (long) output of emerge -tpuv qt-gui:

[snip]


> I admit I do not have the slightest idea of what to do to solve that. I
> can't understand from above which are the packages bringing conflicting
> things, and even the conflicts are unclear. I can't think anything apart
> from unmerging all of Qt and retrying -but even then, I fear that
> something else is the blocking combination and I find myself without Qt.
> 
> I tried googling but, even if some similar blocks comes out, I don't see
> *this* block mess coming out.

Basically, the most important thing to sort out is those qt blocks. You appear 
to be running an arch machine as version 4.5.3-r1 wants to be merged, right?

Trying to merge just qt-gui (or any other individual qt apps) is not really 
going to help much, as portage does not do a deep search. Try:

emerge -avuND world

and see if portage sensibly sorts out what should replace what. You might need 
a very recent portage for this to work automagically. If not, you can either 
unmask portage, emerge portage and try again, or if you don't like that 
approach, you must do it the older, longer way:

remove every single qt and/or qt-* package from world (qt should be treated as 
pure dependencies unless you are developing qt apps)
unmerge *everything* in qt
emerge -avuND world

and let portage sort out what qt versions must be installed.

Then you must remerge all of KDE4 and every other package that uses qt. Don't 
skimp this step becuase it 'takes a long time' - you will surely regret it 
(random mysterious failures etc that only go away when you finally do update 
all of KDE)

Once qt is out of the way, proceed with any other blockers that remain


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] kde-4.3 tweenview does not work

2009-12-26 Thread Alan McKinnon
On Saturday 26 December 2009 19:29:10 Xi Shen wrote:
> hi,
> 
> my system is gentoo amd64, kde-4.3, my graphic card is nvidia's. i use
> nvidia-settings to set up my two displayer to work in the tweenview
> mode. it supposed to have two separate desktop, instead it have a
> large desktop expand two displayer.
> 
> on gnome and windows, tweenview always sets up two separate desktop.
> how can i set this on kde?
> 

Per the nvidia-driver docs (/usr/share/doc/nvidia-drivers-190.53/README.bz2), 
TwinView is designed to give you one large desktop and there's not much you 
can do about that in KDE.

See Chap 15 of that same doc for a description of how to configure two 
separate screens.

-- 
alan dot mckinnon at gmail dot com



[gentoo-user] The Great Macbook Update 3: Qt-4.5.1 to Qt-4.5.3 blocks hell

2009-12-26 Thread bn
Hi,

I have finally updated from kde 3.5 to kde-base 4.3

Everything smooth so far, but when I try to install, for example,
kdeplasma-addons, a blocks hell comes out.

This is the (long) output of emerge -tpuv qt-gui:


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

Calculating dependencies... done!
[nomerge  ] x11-libs/qt-xmlpatterns-4.5.1  USE="-custom-cxxflags
-debug -pch"
[blocks b ]  >x11-libs/qt-dbus-4.5.1-r
(">x11-libs/qt-dbus-4.5.1-r" is blocking
x11-libs/qt-assistant-4.5.1, x11-libs/qt-opengl-4.5.1,
x11-libs/qt-svg-4.5.1-r1, x11-libs/qt-script-4.5.1,
x11-libs/qt-xmlpatterns-4.5.1, x11-libs/qt-test-4.5.1,
x11-libs/qt-gui-4.5.1, x11-libs/qt-qt3support-4.5.1,
x11-libs/qt-sql-4.5.1, x11-libs/qt-core-4.5.1, x11-libs/qt-webkit-4.5.1)

[blocks b ]  >x11-libs/qt-gui-4.5.1-r
(">x11-libs/qt-gui-4.5.1-r" is blocking x11-libs/qt-assistant-4.5.1,
x11-libs/qt-opengl-4.5.1, x11-libs/qt-svg-4.5.1-r1,
x11-libs/qt-script-4.5.1, x11-libs/qt-dbus-4.5.1,
x11-libs/qt-xmlpatterns-4.5.1, x11-libs/qt-test-4.5.1,
x11-libs/qt-qt3support-4.5.1, x11-libs/qt-sql-4.5.1,
x11-libs/qt-core-4.5.1, x11-libs/qt-webkit-4.5.1)

[nomerge  ] dev-python/matplotlib-0.98.5.2  USE="cairo gtk qt3 qt4
tk wxwindows -doc -examples -excel -fltk -latex"
[nomerge  ]  dev-python/PyQt4-4.5.4-r4  USE="X dbus kde opengl sql
svg webkit -assistant -debug -doc -examples -phonon -xmlpatterns"


[nomerge  ]   x11-libs/qt-dbus-4.5.3-r1 [4.5.1] USE="(-aqua) -debug
-pch (-custom-cxxflags%)"
[blocks b ]x11-libs/qt-core-4.5.1-r
(">x11-libs/qt-core-4.5.1-r" is blocking
x11-libs/qt-assistant-4.5.1, x11-libs/qt-opengl-4.5.1,
x11-libs/qt-svg-4.5.1-r1, x11-libs/qt-script-4.5.1,
x11-libs/qt-dbus-4.5.1, x11-libs/qt-xmlpatterns-4.5.1,
x11-libs/qt-test-4.5.1, x11-libs/qt-gui-4.5.1,
x11-libs/qt-qt3support-4.5.1, x11-libs/qt-sql-4.5.1,
x11-libs/qt-webkit-4.5.1)
[blocks b ]  >x11-libs/qt-qt3support-4.5.1-r
(">x11-libs/qt-qt3support-4.5.1-r" is blocking
x11-libs/qt-assistant-4.5.1, x11-libs/qt-opengl-4.5.1,
x11-libs/qt-svg-4.5.1-r1, x11-libs/qt-script-4.5.1,
x11-libs/qt-dbus-4.5.1, x11-libs/qt-xmlpatterns-4.5.1,
x11-libs/qt-test-4.5.1, x11-libs/qt-gui-4.5.1, x11-libs/qt-sql-4.5.1,
x11-libs/qt-core-4.5.1, x11-libs/qt-webkit-4.5.1)
[blocks b ]  >x11-libs/qt-sql-4.5.1-r
(">x11-libs/qt-sql-4.5.1-r" is blocking x11-libs/qt-assistant-4.5.1,
x11-libs/qt-opengl-4.5.1, x11-libs/qt-svg-4.5.1-r1,
x11-libs/qt-script-4.5.1, x11-libs/qt-dbus-4.5.1,
x11-libs/qt-xmlpatterns-4.5.1, x11-libs/qt-test-4.5.1,
x11-libs/qt-gui-4.5.1, x11-libs/qt-qt3support-4.5.1,
x11-libs/qt-core-4.5.1, x11-libs/qt-webkit-4.5.1)

[blocks b ]  >x11-libs/qt-script-4.5.1-r
(">x11-libs/qt-script-4.5.1-r" is blocking
x11-libs/qt-assistant-4.5.1, x11-libs/qt-opengl-4.5.1,
x11-libs/qt-svg-4.5.1-r1, x11-libs/qt-dbus-4.5.1,
x11-libs/qt-xmlpatterns-4.5.1, x11-libs/qt-test-4.5.1,
x11-libs/qt-gui-4.5.1, x11-libs/qt-qt3support-4.5.1,
x11-libs/qt-sql-4.5.1, x11-libs/qt-core-4.5.1, x11-libs/qt-webkit-4.5.1)

[uninstall]   x11-libs/qt-assistant-4.5.1  USE="-custom-cxxflags
-debug -pch"
[nomerge  ] kde-base/kdebase-meta-4.3.3  USE="semantic-desktop
(-kdeprefix) -policykit"
[nomerge  ]  kde-base/kiconfinder-4.3.3  USE="(-aqua) -debug
(-kdeenablefinal) (-kdeprefix)"
[nomerge  ]   kde-base/kdelibs-4.3.3-r1  USE="acl alsa bzip2 fam
handbook mmx nls opengl semantic-desktop spell ssl -3dnow (-altivec)
(-aqua) -bindist -debug -doc -jpeg2k (-kdeenablefinal) (-kdeprefix)
-kerberos (-lzma) -openexr -sse -sse2 -test -zeroconf"
[nomerge  ]app-misc/strigi-0.7.0  USE="clucene dbus fam qt4
-debug -exif -hyperestraier -inotify (-log) -test"
[nomerge  ] x11-libs/qt-dbus-4.5.3-r1 [4.5.1] USE="(-aqua)
-debug -pch (-custom-cxxflags%)"
[blocks b ]  x11-libs/qt-dbus-4.5.1-r
(">x11-libs/qt-dbus-4.5.1-r" is blocking
x11-libs/qt-assistant-4.5.1, x11-libs/qt-opengl-4.5.1,
x11-libs/qt-svg-4.5.1-r1, x11-libs/qt-script-4.5.1,
x11-libs/qt-xmlpatterns-4.5.1, x11-libs/qt-test-4.5.1,
x11-libs/qt-gui-4.5.1, x11-libs/qt-qt3support-4.5.1,
x11-libs/qt-sql-4.5.1, x11-libs/qt-core-4.5.1, x11-libs/qt-webkit-4.5.1)

[blocks B ] >x11-libs/qt-gui-4.5.1-r
(">x11-libs/qt-gui-4.5.1-r" is blocking x11-libs/qt-assistant-4.5.1,
x11-libs/qt-opengl-4.5.1, x11-libs/qt-svg-4.5.1-r1,
x11-libs/qt-script-4.5.1, x11-libs/qt-dbus-4.5.1,
x11-libs/qt-xmlpatterns-4.5.1, x11-libs/qt-test-4.5.1,
x11-libs/qt-qt3support-4.5.1, x11-libs/qt-sql-4.5.1,
x11-libs/qt-core-4.5.1, x11-libs/qt-webkit-4.5.1)

[blocks B ] x11-libs/qt-core-4.5.1-r
(">x11-libs/qt-core-4.5.1-r" is blocking
x11-libs/qt-assistant-4.5.1, x11-libs/qt-opengl-4.5.1,
x11-libs/qt-svg-4.5.1-r1, x11-libs/qt-script-4.5.1,
x11-libs/qt-dbus-4.5.1, x11-libs/qt-xmlpatterns-4.5.1,
x11-libs/qt-test-4.5.1, x11-libs/qt-gui-4.5.1,
x11-libs/qt-qt3support-4.5.1, x11-libs/qt-sql-4.5.1,
x11-libs/qt-webkit-4.5.1)
[blocks B ] x11-libs/qt-qt3support-4.5.1-r
(">x

Re: [gentoo-user] Re: [lame logrotate Q]

2009-12-26 Thread Mick
On Monday 21 December 2009 16:14:50 rea...@newsguy.com wrote:
> Alan McKinnon  writes:
> >> I notice that the size part is on its own line which may be the issue.
> >
> > That will rotate his log when it gets to 100k, and only when it gets to
> > 100k. The OP wants to rotate when either the log file is a certain size,
> > or every week, whichever comes first.
> >
> > Logrotate does not support that feature.
> 
> Thanks Alan... saved me dicking around with it endlessly.

There is a default setting that determines how often files will be rotated if 
you set this up the top of /etc/logrotate.conf:

# rotate log files weekly
weekly

This can be overwritten on a file by file basis; e.g.:
===
# no packages own lastlog or wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}
===

If you intend to use a different rotating frequency for your file in question 
then you may want to try this:
===
/var/log/debug.log 
{
   create 0600 reader wheel
rotate 12
weekly
size=7000k
postrotate
  /etc/init.d/rsyslog reload > /dev/null 2>&1 || true
endscript
}
===

As far as I know when either the period of one week, or a file size of 7000k 
is reached the file will be rotated (by whichever condition is met first).  
Keep an eye on it and play with the file size to confirm that it works for 
you.

HTH.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Re: serial port identification question

2009-12-26 Thread James
David Relson  osagesoftware.com> writes:

 
> How do I determine which devices correspond to the serial ports?

Well, there are lots of tricks. you can test manually by using 
something like this:



echo "bla" > /dev/ttyS0

to a minicom session running on that port, for example.


Another tool to experiment with serial ports is
sys-apps/setserial.


Minicom is your friend for setting  and then testing
various baud rates, port selections and parity too.


Something like this might help? 

ls -l /dev/* | grep ttyS0



You gotta be more specific on your exact issue


You can alway munge around in /dev, just for learning
about such minutia

Oh, and you issue might be related to UDEV.
Or the beautiful thing we call HAL


hth,


James








[gentoo-user] kde-4.3 tweenview does not work

2009-12-26 Thread Xi Shen
hi,

my system is gentoo amd64, kde-4.3, my graphic card is nvidia's. i use
nvidia-settings to set up my two displayer to work in the tweenview
mode. it supposed to have two separate desktop, instead it have a
large desktop expand two displayer.

on gnome and windows, tweenview always sets up two separate desktop.
how can i set this on kde?


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/



Re: [gentoo-user] chromium failed to start up

2009-12-26 Thread Xi Shen
On Sat, Dec 26, 2009 at 6:43 PM, Ngoc Nguyen Bao  wrote:
>
>
> On Sat, Dec 26, 2009 at 11:31 AM, Xi Shen 
> wrote:
>>
>> hi,
>>
>> my system is gentoo amd64, kde 4.3, and have recently updated. last
>> time i emerged chromium and it works fine. but after updated the
>> world, my chromium cannot start up. it reports segment fault.
>>
>> any idea why this happen?
>>
>>
>> --
>> Best Regards,
>> David Shen
>>
>> http://twitter.com/davidshen84/
>> http://meme.yahoo.com/davidshen84/
>>
>
> There's a new bug report about failed start of chromium on amd64
> http://bugs.gentoo.org/show_bug.cgi?id=295756
>
> --
> Nguyễn Bảo Ngọc
> http://www.facebook.com/pymaster
>

it looks like it is the same bug. i updated my nvidia driver, and
chromium works. thanks


-- 
Best Regards,
David Shen

http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/



Re: [gentoo-user] Clean shutdown of laptop possible after migration to KDE4?

2009-12-26 Thread Erik
Alan McKinnon skrev:
> On Saturday 26 December 2009 00:52:31 Erik wrote:
>   
>> Alan McKinnon skrev:
>> 
>>> On Friday 25 December 2009 16:23:23 Erik wrote:
>>>   
 After migrating to KDE4 it seems like the laptop just dies when the
 battery becomes empty. In KDE3 I could set klaptopdaemon to warn when
 the estimated remaining battery time is 15 minutes and begin a clean
 shutdown when it is 10 minutes. It worked very well. Is it somehow
 possible to get a clean shutdown in KDE4? I do not want to loose a
 filesystem because of it.

 
>>> System Settings -> Advanced -> Power Management
>>>   
>> Unfortunately I do not seem to have it. All that I have under System
>> Settings -> Advanced is:
>> Adapt the desktop theme
>> Automatic start
>> Device actions
>> Filebindings
>> Fetch from CDDB
>> Hardware
>> KDE-wallet
>> KDE-resources
>> Session manager
>> Desktop search
>> Service manager
>> -
>> Login manager
>>
>> Which package should I install?
>> 
>
> What version of KDE did you install?

4.3.3


>  Do you use -meta packages, or sets?
>   

No, but now I tried "emerge -pv kdebase-meta" and it gave me a list of
23 packages that I did not have installed, among them powerdevil, which
seems to be the one.



Re: [gentoo-user] Install Gentoo 64bit from 32bit running enviroment

2009-12-26 Thread Alan McKinnon
On Saturday 26 December 2009 14:05:52 Francisco Ares wrote:
> On Fri, Dec 25, 2009 at 8:41 AM, Alan McKinnon 
wrote:
> > On Thursday 24 December 2009 16:33:26 Carlos Moyano Cubillos wrote:
> > > Dear friends,
> > >
> > > I have a gentoo system running 32bit .. and I have a 30GB partition
> > > available on which I would like to install a 64bit Gentoo to test for
> > > 64bit extensions processor supports .
> > >
> > >
> > > someone could help me and tell me how to proceed with this
> > > installation from my running system without having to reboot with a
> > > livecd.
> >
> > You have to reboot with a LiveCD.
> >
> > Your running 32 bit kernel does not support 64 bit instructions and there
> > is
> > no magic voodoo to make it possible. The CPU might understand 64 bit
> > instructions but the running kernel that drives it definitely does not.
> >
> > --
> > alan dot mckinnon at gmail dot com
> 
> I don't know for sure, but I would guess that if you don't try to use any
> file from the new 64 bit partition, that would be fine.
> 
> AFAIK you can install a 64 bit system using the 32 bit livecd.
> 
> Just a guess, though

Think it through. The OP wants to install a 64 bit OS using a running 32 bit 
system. Now, this can work with a pure binary distro - you are just copying 
files after all with those installs.

But this is Gentoo, and he'll have to build something sometime. The absolute 
minimum is to build a 64 kernel as that is not supplied in binary form. How 
will a running 32 bit system generate 64 bit code?

At some point he's going to have to reboot, even if just to use the new OS. 
But before he uses it for real, he'll have to rebuild most of it. That will 
take a good few hours as opposed to the 20 minutes or so to do the original 
install. What has he saved? Very little - 20 minutes at most.

Far easier to just reboot into a LiveCD and install from there. No sense in 
spending large numbers of dollars to save small numbers of pennies

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Install Gentoo 64bit from 32bit running enviroment

2009-12-26 Thread Jesús Guerrero
On Sat, 26 Dec 2009 10:05:52 -0200, Francisco Ares 
wrote:
> On Fri, Dec 25, 2009 at 8:41 AM, Alan McKinnon
> wrote:
> 
>> On Thursday 24 December 2009 16:33:26 Carlos Moyano Cubillos wrote:
>> > Dear friends,
>> >
>> > I have a gentoo system running 32bit .. and I have a 30GB partition
>> > available on which I would like to install a 64bit Gentoo to test for
>> > 64bit extensions processor supports .
>> >
>> >
>> > someone could help me and tell me how to proceed with this
>> > installation from my running system without having to reboot with a
>> > livecd.
>>
>> You have to reboot with a LiveCD.
>>
>> Your running 32 bit kernel does not support 64 bit instructions and
there
>> is
>> no magic voodoo to make it possible. The CPU might understand 64 bit
>> instructions but the running kernel that drives it definitely does not.
>>
>> --
>> alan dot mckinnon at gmail dot com
>>
>>
> 
> I don't know for sure, but I would guess that if you don't try to use
any
> file from the new 64 bit partition, that would be fine.
> 
> AFAIK you can install a 64 bit system using the 32 bit livecd.
> 
> Just a guess, though
> 
> Francisco

You can uncompress the stage files and such, but chroot will fail because
you will be attempting to run a 64 bits bash  binary against the 32 bits
underlying kernel, which will not work. The opposite would be possible
though, you can chroot to a 32 bit userland from a 64 bits kernel. But not
the other way around.

-- 
Jesús Guerrero



[gentoo-user] Gigabyte T1028M Install Journal

2009-12-26 Thread Willie Wong
Hi list, 

Having troubled the list much in the past, I figure one way to
contribute is to here list some pit-falls I encountered in getting a
working environment set up on my Gigabyte T1028M netbook. I will
gradually update this thread as I run into more problems and figure
out how to solve them. 

* Installation

The 1028M, like most netbooks, does not have an optical drive. But the
BIOS is capable of booting from USB. So one way of installing Gentoo
is to boot from a USB disk running SystemRescueCD, which has enough
bells and whistles that the built-in Realtek RTL8101E ethernet jack
works. Then one can just follow the Gentoo Handbook to do the install. 

Just for reference (in configuring the kernel), the hardware on my
netbook includes
  - Realtek RTL8101E ethernet
  - Atheros wireless
  - The IDE/SATA/PCI/USB chip set is Intel 82801G
  - VGA is Intel 945 GME
  - Audio is hda-intel
More on other bits of kernel config later. 

If you just want to nuke the pre-installed stuff, then a quick fdisk,
untarring the stage-3, and installing the bootloader and kernel is
pretty much all you need to get a (re)bootable machine. 

But, as I said before, the computer does not come with optical drive,
even though they do include a set of Install CDs in the purchase. The
recovery system, like many netbooks, consists of an extra partition on
the Hard Drive that boots and re-images the harddrive to factory
state. One may want to save that partition for a rainy day. 

To dual boot, I found out the hard way that the partition table is
fragile. gparted does a good job resizing the Windows partition. But
to re-partition the newly freed space, remember: Windows has a quirky
behaviour. If one does not change the entry units to "sectors" in
fdisk, the Windows bootloader will crap out the next time you try to
boot into Windows. 

The 160G harddrive is big enough to contain a 20G Windows partition +
a 4G FAT32 partition I use to copy files between the two boots. The
rest (minus the ~1G rescue partition) is dedicated to Gentoo. 

* Drivers for the Kernel

I use intelfb on the console. The native resolution of the netbook is
1024x600-32. The frequency probably doesn't matter that much as it is
a LCD display. One should read the Kernel Doc if one needs help with
the boot parameters. 

The netbook comes with a touchscreen, which requires the USB
Touchscreen support in the Kernel (under Device Drivers -> Input ->
Touchscreen). That's right, the built-in eGalax TouchScreen is USB
connected. Though I have not quite managed to get it working yet (as a
mouse). Not a big deal since I haven't installed X at the moment. I'll
deal with that later. At least now with the proper kernel support, I
have a device in /dev/input/event6 that registers whatever happens to
the touch screen. 

The netbook also (like the eeePC and friends) come with the ElanTech
Touchpad for a PS/2 mouse device. Be sure to select the proper kernel
support (Device Drivers -> Input -> Mouse -> ... something here...).
It is the one for the ElanTech PS/2 support, and hard to miss (though
I did on my first time through the configuration). 

Now, if your computer is like mine, just this is not enough to get
mouse working. You'd find after booting that dmesg lists no ElanTech
devices! This is a known bug! It happens also for eeePC and MSI Winds,
that whatever chipset is responsible, is causing a problem that
overflows the kbd driver, which causes the mouse driver to not load at
boot-time. A workaround is to pass "i8042.noloop=1" as a kernel boot
parameter. With this, and with gpm pointed to the proper mouse device
(on this box it is /dev/input/mouse1) one gets the pointer on the
console. (Useful if you browse the net in links on a console in
framebuffer mode.)

* Console

I have the console set-up to use unicode. Of course, the available
codepages are still limited to basically European glyphs. I emerged
"terminus-fonts" and am using ter-v16n in conf.d/consolefont. 

Of side interest, I just found out that lynx now has CJK support. Of
course, in the normal console where Chinese/Japanese/Korean glyphs are
not available, this doesn't do much. To see CJK on the console, one
needs to install a console emulator. In my case, I am mostly
interested in Chinese support, so I emerged zhcon. Now, I am not
exactly sure if zhcon has UTF-8 support (their webpage suggests yes,
but I am still looking to toggle it on). Right now I run zhcon with
the locale set to zh_TW.Big5. A downside to this is that when starting
lynx, one needs to go to the options (which now shows in Gibberish
since lynx by default outputs to UTF-8 which the locale now doesn't
parse), and tick the option to set output locale to the environment
locale. After hitting submit the text will be all "right" again. 


To be continued... (?)

W

-- 
If you aren't part of the solution, you're part of the precipitate.
Sortir en Pantoufles: up 1114 days, 11:07



Re: [gentoo-user] Mail from rkhunter

2009-12-26 Thread Francisco Ares
On Fri, Dec 25, 2009 at 9:07 AM, Florian Philipp <
li...@f_philipp.fastmail.net> wrote:

> Mark Knecht schrieb:
> > Hi,
> >What's the minimum configuration required on a remote system to get
> > rkhunter to email my GMail account if the rkhunter cron job finds
> > something suspicious?
> >
> >Do I have to emerge and configure an email server of some type or
> > can rkhunter just send email on its own?
> >
> > Thanks,
> > Mark
> >
>
> ssmtp or any other sendmail replacement will be sufficient. Just look at
> their respective config files for filling in your account data.
>
>
http://www.yak.net/fqa/84.html

hope this helps

Francisco


Re: [gentoo-user] Install Gentoo 64bit from 32bit running enviroment

2009-12-26 Thread Francisco Ares
On Fri, Dec 25, 2009 at 8:41 AM, Alan McKinnon wrote:

> On Thursday 24 December 2009 16:33:26 Carlos Moyano Cubillos wrote:
> > Dear friends,
> >
> > I have a gentoo system running 32bit .. and I have a 30GB partition
> > available on which I would like to install a 64bit Gentoo to test for
> > 64bit extensions processor supports .
> >
> >
> > someone could help me and tell me how to proceed with this
> > installation from my running system without having to reboot with a
> > livecd.
>
> You have to reboot with a LiveCD.
>
> Your running 32 bit kernel does not support 64 bit instructions and there
> is
> no magic voodoo to make it possible. The CPU might understand 64 bit
> instructions but the running kernel that drives it definitely does not.
>
> --
> alan dot mckinnon at gmail dot com
>
>

I don't know for sure, but I would guess that if you don't try to use any
file from the new 64 bit partition, that would be fine.

AFAIK you can install a 64 bit system using the 32 bit livecd.

Just a guess, though

Francisco

-- 
"If you have an apple and I have an apple and we exchange apples then you
and I will still each have one apple. But if you have an idea and I have one
idea and we exchange these ideas, then each of us will have two ideas." -
George Bernard Shaw


Re: [gentoo-user] Installation (or not) of Perl Getopt::Long

2009-12-26 Thread Stefan Schulte
Hi Stroller,

you may also want to look at Getopt::Declare. If you dont want to do
something fancy you just have to write the »program -help« page and
you're done.

It's not in portage but you can emerge g-cpan to install it.

Stefan

On Fri, Dec 25, 2009 at 04:21:53PM +, Stroller wrote:
> Hey, Gentoo,
> 
> I'm just attempting to learn a little Perl and write a little Perl program.
> 
> I have been experimenting with the Getopt::Long module, which seems to be 
> working fine, but I'm considering Getopt::Tabular instead.
> 
> So I thought I'd search portage for "Getopt", to see if that is readily 
> provided by Portage, or otherwise which modules are:
> 
> $ eix -c -C perl Getopt 
> [N] dev-perl/Getopt-ArgvFile (1.11): This module is a simple supplement to 
> other option handling modules.
> [N] dev-perl/Getopt-Long-Descriptive (~0.083): Getopt::Long with usage text
> [N] dev-perl/Getopt-Mixed (1.10): Getopt::Mixed is used for parsing mixed 
> options
> [N] dev-perl/MooseX-Getopt (~0.26): A Moose role for processing command line 
> options
> [N] perl-core/Getopt-Long (2.38): Advanced handling of command line options
> Found 5 matches.
> $ 
> 
> Yet none of them, not even the Get::Long package that I've been experimenting 
> with, are installed on my system:
> 
> $ eix -c -C perl Getopt -I
> No matches found.
> $ 
> 
> Can anyone explain, please, why this appears not to be installed? Yet how 
> it's working just fine?
> 
> It looks like a simpler options parsing module is installed, but not this one:
> 
> $ locate GetOpt
> /usr/share/man/man3/Tcl_ChannelGetOptionProc.3.bz2
> /usr/share/doc/perl-5.8.8-r8/html/lib/Pod/Perldoc/GetOptsOO.html
> /usr/lib/perl5/5.8.8/Pod/Perldoc/GetOptsOO.pm
> $ 
> 
> Further evidence that Getopt::Long seems to be working on this system is that 
> it's used by get_iplayer, which has been working well on this system for the 
> last 3 weeks or so:
> 
> $ grep -i Getopt  `which get_iplayer`
> use Getopt::Long;
> search  => [ 1, "search=s", 'Search', '--search  term>', "GetOpt compliant way of specifying search args"],
> use Getopt::Long;
> # Build hash for passing to GetOptions module
> Getopt::Long::Configure("bundling");
> Getopt::Long::Configure("pass_through");
> Getopt::Long::Configure("no_pass_through");
> return GetOptions(%get_opts);
> $ 
> 
> get_iplayer can be examined at http://linuxcentre.net/get_iplayer/get_iplayer 
> in case I'm misunderstanding its usage.
> 
> I feel really dumb - there must be something simple & logical that I'm 
> missing here.
> 
> Stroller.
> 
> 


pgpfStQycTknh.pgp
Description: PGP signature


Re: [gentoo-user] chromium failed to start up

2009-12-26 Thread Ngoc Nguyen Bao
On Sat, Dec 26, 2009 at 11:31 AM, Xi Shen wrote:

> hi,
>
> my system is gentoo amd64, kde 4.3, and have recently updated. last
> time i emerged chromium and it works fine. but after updated the
> world, my chromium cannot start up. it reports segment fault.
>
> any idea why this happen?
>
>
> --
> Best Regards,
> David Shen
>
> http://twitter.com/davidshen84/
> http://meme.yahoo.com/davidshen84/
>
>
There's a new bug report about failed start of chromium on amd64
http://bugs.gentoo.org/show_bug.cgi?id=295756

-- 
Nguyễn Bảo Ngọc
http://www.facebook.com/pymaster


Re: [gentoo-user] Clean shutdown of laptop possible after migration to KDE4?

2009-12-26 Thread Alan McKinnon
On Saturday 26 December 2009 00:52:31 Erik wrote:
> Alan McKinnon skrev:
> > On Friday 25 December 2009 16:23:23 Erik wrote:
> >> After migrating to KDE4 it seems like the laptop just dies when the
> >> battery becomes empty. In KDE3 I could set klaptopdaemon to warn when
> >> the estimated remaining battery time is 15 minutes and begin a clean
> >> shutdown when it is 10 minutes. It worked very well. Is it somehow
> >> possible to get a clean shutdown in KDE4? I do not want to loose a
> >> filesystem because of it.
> >
> > System Settings -> Advanced -> Power Management
> 
> Unfortunately I do not seem to have it. All that I have under System
> Settings -> Advanced is:
> Adapt the desktop theme
> Automatic start
> Device actions
> Filebindings
> Fetch from CDDB
> Hardware
> KDE-wallet
> KDE-resources
> Session manager
> Desktop search
> Service manager
> -
> Login manager
> 
> Which package should I install?

Off hand, I have no idea :-)

What version of KDE did you install? Do you use -meta packages, or sets?

Please supply all the usual info - emerge -pv output with USE flags etc

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] chromium failed to start up

2009-12-26 Thread Alan McKinnon
On Saturday 26 December 2009 06:31:24 Xi Shen wrote:
> hi,
> 
> my system is gentoo amd64, kde 4.3, and have recently updated. last
> time i emerged chromium and it works fine. but after updated the
> world, my chromium cannot start up. it reports segment fault.
> 
> any idea why this happen?
> 

start chromium from a terminal and post output.

Assistance is seldom possible without this info.


-- 
alan dot mckinnon at gmail dot com



[gentoo-user] Openrc-0.6.0 against network configuration

2009-12-26 Thread zhushazang
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey dudes, i'm using at to openrc-0.5.3 this /etc/conf.d/net configuration:

config_bond0="192.168.1.2  netmask 255.255.255.0"
slaves_bond0="eth0 eth2"
routes_bond0="default via 192.168.1.1"


But now, with upgrade to openrc-0.6.0 my network configuration don't
start in boot process.

Has some new how-to to follow, cos this:

http://www.gentoo.org/doc/en/openrc-migration.xml

Are outdated...

Thanks for now
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAks1tnMACgkQ35zeJy7JhChtIgCeKfLlSHZB0PLWEFNoa6TY3otj
gSMAn12QJuHGxDzhDxFyaayP4GeNct5e
=j3Hl
-END PGP SIGNATURE-