Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread J. Roeleveld

On Mon, September 17, 2012 8:48 pm, Dale wrote:
 I still have not hooked this thing up yet.  We have storms predicted
 here over the next couple days so I figure I will get a chance to switch
 whether I want to reboot or not.  :/  I live close to the end of the
 power lines, phone lines and everything else including the road.  If
 anything happens, we lose the connection.  There are lots of trees
 between here and town.

 I'll post the results when I get switched over.  Then we have a answer
 to the question.

Dale,

A good way to test a new UPS is to use it to power a light and hook up the
USB/Serial/... to a computer to see what information you can get out of it
in the various normal situations of plugged in and not plugged in

You don't need to reboot your machine for that. :)

-- 
Joost




Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Dale
J. Roeleveld wrote:
 On Mon, September 17, 2012 8:48 pm, Dale wrote:
 I still have not hooked this thing up yet.  We have storms predicted
 here over the next couple days so I figure I will get a chance to switch
 whether I want to reboot or not.  :/  I live close to the end of the
 power lines, phone lines and everything else including the road.  If
 anything happens, we lose the connection.  There are lots of trees
 between here and town.

 I'll post the results when I get switched over.  Then we have a answer
 to the question.
 Dale,

 A good way to test a new UPS is to use it to power a light and hook up the
 USB/Serial/... to a computer to see what information you can get out of it
 in the various normal situations of plugged in and not plugged in

 You don't need to reboot your machine for that. :)


I need to reboot when I plug the power cord up tho.  I have the UPS
plugged in and the battery is charged.  I even hooked it up to a older
rig that was given to me and the UPS works fine.  I just have not done
anything as far as hooking it to my main rig yet.  I also have not
hooked up the data part, just the power part.  I was running memtest on
the older rig to test some ram so no need trying to hook up the data
part on that.  ;-)  

Plus, aren't you supposed to only unplug/plug a serial cable when it is
off?  I'm not sure if they are sensitive to that but pretty sure they
were a long time ago. 

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] new machine : suddenly Python 3 appears

2012-09-18 Thread Marc Joliet
Am Mon, 17 Sep 2012 23:27:34 +0100
schrieb David W Noon dwn...@ntlworld.com:

 On Mon, 17 Sep 2012 17:17:47 -0400, Philip Webb wrote about Re:
 [gentoo-user] new machine : suddenly Python 3 appears:
 
  120917 Philip Webb wrote:
   120917 David W Noon wrote:
  print('  {0}'.format(eval(expression)))
  
  That works properly with Python2 in this machine ;
  I'll check it with Python3 later in the new machine.
 
 That *is* Python 3 syntax.  It is also accepted under recent releases
 of Python 2.
 
   120917 Marc Joliet wrote:
 print('  ',eval(expression))
  
  That does the calculation, but the output is wrongly formatted :
  
514 bin pycalc1 2+3
('  ', 5)
 
 This is because Marc's code is syntactically invalid for Python 3.  It
 is acceptable to Python 2, but does not do what you want; but it won't
 work at all under Python 3.

No, he simply executed it using python2, hence he printed a tuple. My version
certainly prints the exact same output as the python2 version, *when executed
by python3*. You tried it out first, right? I certainly did.

Note that the only difference to your version is that yours does string
formatting via str.format(), which also exists in Python 2. That of course has
the advantage of working the same in Python 2 and 3 (*if* you care about that):
the argument to print is not a tuple anymore, so it is not formatted as such:

  $ python3 -c print('{0}'.format(3)) 
  3
  $ python2 -c print('{0}'.format(3))
  3

 It is clear that you have not taken my advice to use the -3 run-time
 option in your hash-bang line.  At the risk of blowing my own trumpet,
 that was *extremely sound* advice; you should really take it.  It would
 have revealed the problems with the above code during the Python
 interpreter's initial scan of the code.  I'll repeat it:
 !#/usr/bin/python2 -3
 This will perform a Python 3 syntax check, even under Python 2.  It
 will identify any going-forward issues for your Python script(s).

I also just remembered the 2to3 program, which will translate trivial (such
as print vs. print()) and (I think) some not so trivial cases to python3 syntax
for you. Personally I think you should just convert your scripts to python3 and
be done with it, unless you want to avoid python3 forever.

Of course, Philip did say this is his only python script, so using python2 -3
might actually be a tad overkill for his purposes, unless he wants to start
learning python, in which case: why not just start with python 3?

HTH
-- 
Marc Joliet
--
People who think they know everything really annoy those of us who know we
don't - Bjarne Stroustrup


signature.asc
Description: PGP signature


Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread J. Roeleveld

On Tue, September 18, 2012 9:03 am, Dale wrote:
 J. Roeleveld wrote:
 On Mon, September 17, 2012 8:48 pm, Dale wrote:
 I still have not hooked this thing up yet.  We have storms predicted
 here over the next couple days so I figure I will get a chance to
 switch
 whether I want to reboot or not.  :/  I live close to the end of the
 power lines, phone lines and everything else including the road.  If
 anything happens, we lose the connection.  There are lots of trees
 between here and town.

 I'll post the results when I get switched over.  Then we have a answer
 to the question.
 Dale,

 A good way to test a new UPS is to use it to power a light and hook up
 the
 USB/Serial/... to a computer to see what information you can get out of
 it
 in the various normal situations of plugged in and not plugged in

 You don't need to reboot your machine for that. :)


 I need to reboot when I plug the power cord up tho.  I have the UPS
 plugged in and the battery is charged.  I even hooked it up to a older
 rig that was given to me and the UPS works fine.  I just have not done
 anything as far as hooking it to my main rig yet.  I also have not
 hooked up the data part, just the power part.  I was running memtest on
 the older rig to test some ram so no need trying to hook up the data
 part on that.  ;-)

 Plus, aren't you supposed to only unplug/plug a serial cable when it is
 off?  I'm not sure if they are sensitive to that but pretty sure they
 were a long time ago.

Not sure about Serial, I always did even when switched on when using
external modems in the past and never did have a problem there.

But if you want to see what USB gives as info, you could plug the
USB-cable into your computer and see what info you can get?

-- 
Joost




Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Dale
J. Roeleveld wrote:
 On Tue, September 18, 2012 9:03 am, Dale wrote:
 J. Roeleveld wrote:
 On Mon, September 17, 2012 8:48 pm, Dale wrote:
 I still have not hooked this thing up yet.  We have storms predicted
 here over the next couple days so I figure I will get a chance to
 switch
 whether I want to reboot or not.  :/  I live close to the end of the
 power lines, phone lines and everything else including the road.  If
 anything happens, we lose the connection.  There are lots of trees
 between here and town.

 I'll post the results when I get switched over.  Then we have a answer
 to the question.
 Dale,

 A good way to test a new UPS is to use it to power a light and hook up
 the
 USB/Serial/... to a computer to see what information you can get out of
 it
 in the various normal situations of plugged in and not plugged in

 You don't need to reboot your machine for that. :)

 I need to reboot when I plug the power cord up tho.  I have the UPS
 plugged in and the battery is charged.  I even hooked it up to a older
 rig that was given to me and the UPS works fine.  I just have not done
 anything as far as hooking it to my main rig yet.  I also have not
 hooked up the data part, just the power part.  I was running memtest on
 the older rig to test some ram so no need trying to hook up the data
 part on that.  ;-)

 Plus, aren't you supposed to only unplug/plug a serial cable when it is
 off?  I'm not sure if they are sensitive to that but pretty sure they
 were a long time ago.
 Not sure about Serial, I always did even when switched on when using
 external modems in the past and never did have a problem there.

 But if you want to see what USB gives as info, you could plug the
 USB-cable into your computer and see what info you can get?


Well, my old UPS is hooked to serial.  I also have to recompile nut with
the correct drivers.  I guess I could enable both drivers, old UPS and
new UPS, and see what that does.  Well, I'd have to edit my config file
too.  Sounds like time to backup /etc again, just in case.  ;-) 

Since we had some storms today, I was expecting at least one power
outage.  Since I wouldn't have minded this time, we have had good clean
power all day long.  The storms are mostly gone too.  Maybe another
raccoon will jump up on the high voltage transformer at the substation. 
It takes them about a hour to clean up the well done critter parts.  lol

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Neil Bothwick
On Tue, 18 Sep 2012 09:51:49 +0200, J. Roeleveld wrote:

  Plus, aren't you supposed to only unplug/plug a serial cable when it
  is off?  I'm not sure if they are sensitive to that but pretty sure
  they were a long time ago.  
 
 Not sure about Serial, I always did even when switched on when using
 external modems in the past and never did have a problem there.

You were lucky, it's like forgetting to look when you cross the road.
Getting away with it once doesn't mean it is safe.

Yes, I have blown a UART chip by hotplugging a serial cable, because I'd
got away with it before.


-- 
Neil Bothwick

I'm Pink, Therefore I'm Spam


signature.asc
Description: PGP signature


Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Dale
Neil Bothwick wrote:
 On Tue, 18 Sep 2012 09:51:49 +0200, J. Roeleveld wrote:

 Plus, aren't you supposed to only unplug/plug a serial cable when it
 is off?  I'm not sure if they are sensitive to that but pretty sure
 they were a long time ago.  
 Not sure about Serial, I always did even when switched on when using
 external modems in the past and never did have a problem there.
 You were lucky, it's like forgetting to look when you cross the road.
 Getting away with it once doesn't mean it is safe.

 Yes, I have blown a UART chip by hotplugging a serial cable, because I'd
 got away with it before.



That's what I was thinking.  I have busted a mobo by unplugging a PS/2
keyboard too.  I thought serial/parallel was the same.  I guess that is
one reason USB came along, hot plugging stuff. 

One would think that modern stuff would have some sort of protection. 
Odd. 

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Adam Carter
 You were lucky, it's like forgetting to look when you cross the road.
 Getting away with it once doesn't mean it is safe.

 Yes, I have blown a UART chip by hotplugging a serial cable, because I'd
 got away with it before.

I must have hot plugged serial connections on Sun, Cisco and Intel
boxes hundreds of times over the years and as far as i know have never
seen a failure. Typically, the same device would be hot plugged
multiple times so failures would have been noticed. I consider the
risk to be negligible.



Re: [gentoo-user] virtualbox - serial port

2012-09-18 Thread Joseph

On 09/18/12 07:07, J. Roeleveld wrote:

Joseph syscon...@gmail.com wrote:


I'm trying to configure virutalbox serial port, but I'm getting an
error:

NamedPipe#0 failed to connect to local socket /dev/ttyS0
(VERR_ACCESS_DENIED).

in inittab I have:
c7:2345:respawn:/usr/sbin/faxgetty ttyS0

is the above correct?

In virtualbox - serial port
Port Number: COM1
Port Mode: Host Device
Port/File Path: /dev/ttyS0

What am I missing?


Joseph.

Do you have permissions set correctly to access the serial port normally 
(without virtualbox)?

--
Joost


The tty0 has permission:

ls -l /dev/ttyS0
crw-rw 1 root tty 4, 64 Sep 17 20:56 /dev/ttyS0

Is the above correct permission? 


Thanks,
--
Joseph



Re: [gentoo-user] virtualbox - serial port

2012-09-18 Thread J. Roeleveld
Joseph syscon...@gmail.com wrote:

On 09/18/12 07:07, J. Roeleveld wrote:
Joseph syscon...@gmail.com wrote:

I'm trying to configure virutalbox serial port, but I'm getting an
error:

NamedPipe#0 failed to connect to local socket /dev/ttyS0
(VERR_ACCESS_DENIED).

in inittab I have:
c7:2345:respawn:/usr/sbin/faxgetty ttyS0

is the above correct?

In virtualbox - serial port
Port Number: COM1
Port Mode: Host Device
Port/File Path: /dev/ttyS0

What am I missing?

Joseph.

Do you have permissions set correctly to access the serial port
normally (without virtualbox)?

--
Joost

The tty0 has permission:

ls -l /dev/ttyS0
crw-rw 1 root tty 4, 64 Sep 17 20:56 /dev/ttyS0

Is the above correct permission? 

Thanks,

Those are default permissions. However those normally won't give a normal user 
access. You can change the permissions of that file/device to enable your user 
to have access.

I am typing this on my mobile and can't quickly tell you how to do that on a 
permanent basis. But for a quick change you can use 'chown' to change the owner 
to your own user.

--
Joost
-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] virtualbox - serial port

2012-09-18 Thread Alex Schuster

J. Roeleveld writes:


Joseph syscon...@gmail.com wrote:



ls -l /dev/ttyS0 crw-rw 1 root tty 4, 64 Sep 17 20:56
/dev/ttyS0

Is the above correct permission?



Those are default permissions. However those normally won't give a
normal user access. You can change the permissions of that
file/device to enable your user to have access.

I am typing this on my mobile and can't quickly tell you how to do
that on a permanent basis. But for a quick change you can use 'chown'
to change the owner to your own user.


What about 'gpasswd -a user tty' to add the tty group to the user? 
Needs a re-login to make use of the changes.


Wonko



Re: [gentoo-user] virtualbox - serial port

2012-09-18 Thread Joseph

On 09/18/12 15:03, J. Roeleveld wrote:

[snip]


The tty0 has permission:

ls -l /dev/ttyS0
crw-rw 1 root tty 4, 64 Sep 17 20:56 /dev/ttyS0

Is the above correct permission?

Thanks,


Those are default permissions. However those normally won't give a normal user 
access. You can change the permissions of that file/device to enable your user 
to have access.

I am typing this on my mobile and can't quickly tell you how to do that on a 
permanent basis. But for a quick change you can use 'chown' to change the owner 
to your own user.


Though, I forgot to mention that I'm in tty group so I have access to this file. 


--
Joseph



Re: [gentoo-user] virtualbox - serial port

2012-09-18 Thread Joseph

On 09/18/12 15:12, Alex Schuster wrote:

J. Roeleveld writes:


Joseph syscon...@gmail.com wrote:



ls -l /dev/ttyS0 crw-rw 1 root tty 4, 64 Sep 17 20:56
/dev/ttyS0

Is the above correct permission?



Those are default permissions. However those normally won't give a
normal user access. You can change the permissions of that
file/device to enable your user to have access.

I am typing this on my mobile and can't quickly tell you how to do
that on a permanent basis. But for a quick change you can use 'chown'
to change the owner to your own user.


What about 'gpasswd -a user tty' to add the tty group to the user?
Needs a re-login to make use of the changes.

Wonko


Yes, I'm tty group:
tty lp wheel mail cron audio cdrom postgres cdrw usb users scanner vboxusers

in addition I have try to change the permission to:
chmod 0666 /dev/ttyS0

but it makes no difference, when starting virtualbox xp I'm still getting the 
error:
NamedPipe#0 failed to connect to local socket /dev/ttyS0 
(VERR_NET_CONNECTION_REFUSED).

--
Joseph



Re: [gentoo-user] virtualbox - serial port

2012-09-18 Thread Michael Mol
On Tue, Sep 18, 2012 at 9:27 AM, Joseph syscon...@gmail.com wrote:
 On 09/18/12 15:12, Alex Schuster wrote:

 J. Roeleveld writes:

 Joseph syscon...@gmail.com wrote:


 ls -l /dev/ttyS0 crw-rw 1 root tty 4, 64 Sep 17 20:56
 /dev/ttyS0

 Is the above correct permission?


 Those are default permissions. However those normally won't give a
 normal user access. You can change the permissions of that
 file/device to enable your user to have access.

 I am typing this on my mobile and can't quickly tell you how to do
 that on a permanent basis. But for a quick change you can use 'chown'
 to change the owner to your own user.


 What about 'gpasswd -a user tty' to add the tty group to the user?
 Needs a re-login to make use of the changes.

 Wonko


 Yes, I'm tty group:
 tty lp wheel mail cron audio cdrom postgres cdrw usb users scanner vboxusers

 in addition I have try to change the permission to:
 chmod 0666 /dev/ttyS0

 but it makes no difference, when starting virtualbox xp I'm still getting
 the error:
 NamedPipe#0 failed to connect to local socket /dev/ttyS0
 (VERR_NET_CONNECTION_REFUSED).

Sounds like policykit, then. Someone with policykit experience might
be able to tell us how to ask the system which privileges are required
to access that file, and then how to ask the system to give those
privileges to a given user.

(Not knowing much about policykit, but knowing some of what it's
capable of, this would be something I'd like to hear.)
-- 
:wq



Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Neil Bothwick
On Tue, 18 Sep 2012 20:55:30 +1000, Adam Carter wrote:

  You were lucky, it's like forgetting to look when you cross the road.
  Getting away with it once doesn't mean it is safe.
 
  Yes, I have blown a UART chip by hotplugging a serial cable, because
  I'd got away with it before.  
 
 I must have hot plugged serial connections on Sun, Cisco and Intel
 boxes hundreds of times over the years and as far as i know have never
 seen a failure. Typically, the same device would be hot plugged
 multiple times so failures would have been noticed. I consider the
 risk to be negligible.

I used to think the same way, until the risk turned out to be less
negligible than I thought. It's entirely your choice whether you continue
to take that risk, but I don't think it is fair to tell others it is
safe to do so.


-- 
Neil Bothwick

She's fine, upstanding, and wonderful laying down.


signature.asc
Description: PGP signature


Re: [gentoo-user] Kernel options and udisk

2012-09-18 Thread Peter Humphrey
On Tuesday 18 September 2012 02:13:14 Canek Peláez Valdés wrote:
 On Mon, Sep 17, 2012 at 7:25 PM, Peter Humphrey
 
 pe...@humphrey.ukfsn.org wrote:
  I resent the kernel's insistence on deciding when my monitor should
  be switched off. I'm perfectly capable of doing that myself, thank
  you very much.
 
 Well, if that's the way you feel, you obviously don't use (nor need)
 udisks, and take care of everything that goes on with your machine,
 like when to flush I/O or when to move memory pages to swap.

No, of course not. That would be silly. I just like to have the monitor 
under my control, that's all.

-- 
Rgds
Peter



Re: [gentoo-user] virtualbox - serial port

2012-09-18 Thread Joseph

On 09/18/12 07:07, J. Roeleveld wrote:

Joseph syscon...@gmail.com wrote:


I'm trying to configure virutalbox serial port, but I'm getting an
error:

NamedPipe#0 failed to connect to local socket /dev/ttyS0
(VERR_ACCESS_DENIED).

in inittab I have:
c7:2345:respawn:/usr/sbin/faxgetty ttyS0

is the above correct?

In virtualbox - serial port
Port Number: COM1
Port Mode: Host Device
Port/File Path: /dev/ttyS0

What am I missing?


Joseph.

Do you have permissions set correctly to access the serial port normally 
(without virtualbox)?

--
Joost


How do I check if some other application are not using serial port?

--
Joseph



Re: [gentoo-user] Kernel options and udisk

2012-09-18 Thread Michael Mol
On Tue, Sep 18, 2012 at 10:32 AM, Peter Humphrey
pe...@humphrey.ukfsn.org wrote:
 On Tuesday 18 September 2012 02:13:14 Canek Peláez Valdés wrote:
 On Mon, Sep 17, 2012 at 7:25 PM, Peter Humphrey

 pe...@humphrey.ukfsn.org wrote:
  I resent the kernel's insistence on deciding when my monitor should
  be switched off. I'm perfectly capable of doing that myself, thank
  you very much.

 Well, if that's the way you feel, you obviously don't use (nor need)
 udisks, and take care of everything that goes on with your machine,
 like when to flush I/O or when to move memory pages to swap.

 No, of course not. That would be silly. I just like to have the monitor
 under my control, that's all.

You do. You can turn it off and on via the hardware switch on it, and
you can disable the kernel's turning it off via software controls.

man setterm

You have the ability to explicitly control display powersave behaviors
using the -powersave and -powerdown options.

If you're in X, you have xset.

xset -dpms turns Energy Star features off.
xset +dpms turns them on.
xset dpms force off turns your display off.
xset dpms force on turns your display on.

Run 'xset' in an xterm to see all the options you have available there.

If you're running xscreensaver, you can control its use of DPMS in the
configuration window offered by the xscreensaver-demo program. GNOME
and KDE also provide similar knobs.

-- 
:wq



Re: [gentoo-user] virtualbox - serial port

2012-09-18 Thread Michael Mol
On Tue, Sep 18, 2012 at 10:49 AM, Joseph syscon...@gmail.com wrote:
 On 09/18/12 07:07, J. Roeleveld wrote:

 Joseph syscon...@gmail.com wrote:

 I'm trying to configure virutalbox serial port, but I'm getting an
 error:

 NamedPipe#0 failed to connect to local socket /dev/ttyS0
 (VERR_ACCESS_DENIED).

 in inittab I have:
 c7:2345:respawn:/usr/sbin/faxgetty ttyS0

 is the above correct?

 In virtualbox - serial port
 Port Number: COM1
 Port Mode: Host Device
 Port/File Path: /dev/ttyS0

 What am I missing?


 Joseph.

 Do you have permissions set correctly to access the serial port normally
 (without virtualbox)?

 --
 Joost


 How do I check if some other application are not using serial port?

lsof -n |grep /dev/tty

-- 
:wq



[gentoo-user] Re: virtualbox - serial port

2012-09-18 Thread Grant Edwards
On 2012-09-18, Joseph syscon...@gmail.com wrote:
 On 09/18/12 07:07, J. Roeleveld wrote:
Joseph syscon...@gmail.com wrote:

I'm trying to configure virutalbox serial port, but I'm getting an
error:

NamedPipe#0 failed to connect to local socket /dev/ttyS0
(VERR_ACCESS_DENIED).
[...]
What am I missing?

Do you have permissions set correctly to access the serial port
normally (without virtualbox)?

 How do I check if some other application are not using serial port?

To check to see if another app has the port open, use lsof. But,
that's not what's causing your error.  Linux allows serial ports to be
open by multiple processes.

Do you have permissions set correctly to access the serial port
normally (without virtualbox)?

-- 
Grant Edwards   grant.b.edwardsYow! Nipples, dimples,
  at   knuckles, NICKLES,
  gmail.comwrinkles, pimples!!




Re: [gentoo-user] virtualbox - serial port

2012-09-18 Thread Joseph

On 09/18/12 11:01, Michael Mol wrote:


How do I check if some other application are not using serial port?


lsof -n |grep /dev/tty

--
:wq


Nothing is using ttyS0 so I'm puzzled why virtualbox is giving me permission 
error

--
Joseph



Re: [gentoo-user] Re: virtualbox - serial port

2012-09-18 Thread Joseph

On 09/18/12 15:06, Grant Edwards wrote:

I'm trying to configure virutalbox serial port, but I'm getting an
error:

NamedPipe#0 failed to connect to local socket /dev/ttyS0
(VERR_ACCESS_DENIED).

[...]

What am I missing?



Do you have permissions set correctly to access the serial port
normally (without virtualbox)?



How do I check if some other application are not using serial port?


To check to see if another app has the port open, use lsof. But,
that's not what's causing your error.  Linux allows serial ports to be
open by multiple processes.

Do you have permissions set correctly to access the serial port
normally (without virtualbox)?

--
Grant Edwards   grant.b.edwardsYow! Nipples, dimples,
 at   knuckles, NICKLES,
 gmail.comwrinkles, pimples!!


When I run: lsof -n |grep /dev/ttyS
nothing is showing up so I'm sure no other application is using it. I run 
hylafax but I disabled it and commented out in inittab:
#c7:2345:respawn:/usr/sbin/faxgetty ttyS0

I set ttyS0 to 666
ll  /dev/ttyS*
crw-rw-rw- 1 uucp tty  4, 64 Sep 18 09:21 /dev/ttyS0
crw-rw 1 root uucp 4, 65 Sep  2 06:09 /dev/ttyS1
crw-rw 1 root uucp 4, 66 Sep  2 06:09 /dev/ttyS2
crw-rw 1 root uucp 4, 67 Sep  2 06:09 /dev/ttyS3

I'm in group tty, so I can not figure it out why virtualbox is complaining. 


--
Joseph



[gentoo-user] Re: virtualbox - serial port

2012-09-18 Thread Grant Edwards
On 2012-09-18, Joseph syscon...@gmail.com wrote:
 On 09/18/12 15:06, Grant Edwards wrote:
I'm trying to configure virutalbox serial port, but I'm getting an
error:

NamedPipe#0 failed to connect to local socket /dev/ttyS0
(VERR_ACCESS_DENIED).
[...]
What am I missing?

Do you have permissions set correctly to access the serial port
normally (without virtualbox)?

 How do I check if some other application are not using serial port?

To check to see if another app has the port open, use lsof. But,
that's not what's causing your error.  Linux allows serial ports to be
open by multiple processes.

Do you have permissions set correctly to access the serial port
normally (without virtualbox)?

 When I run: lsof -n |grep /dev/ttyS

 nothing is showing up so I'm sure no other application is using it. I
 run hylafax but I disabled it and commented out in inittab:
 #c7:2345:respawn:/usr/sbin/faxgetty ttyS0


 I set ttyS0 to 666
 ll  /dev/ttyS*
 crw-rw-rw- 1 uucp tty  4, 64 Sep 18 09:21 /dev/ttyS0
 crw-rw 1 root uucp 4, 65 Sep  2 06:09 /dev/ttyS1
 crw-rw 1 root uucp 4, 66 Sep  2 06:09 /dev/ttyS2
 crw-rw 1 root uucp 4, 67 Sep  2 06:09 /dev/ttyS3

 I'm in group tty, so I can not figure it out why virtualbox is
 complaining. 

What happens when you do cat /dev/ttyS0?

-- 
Grant Edwards   grant.b.edwardsYow! ... bleakness
  at   ... desolation ... plastic
  gmail.comforks ...




[gentoo-user] Re: virtualbox - serial port

2012-09-18 Thread Grant Edwards
On 2012-09-18, Joseph syscon...@gmail.com wrote:
 On 09/18/12 11:01, Michael Mol wrote:

 How do I check if some other application are not using serial port?

lsof -n |grep /dev/tty

-- 
:wq


 Nothing is using ttyS0

That has nothing to do with a permission error.  If you had proper
permissions, you won't get a permission error even if something else
is using ttyS0.

 so I'm puzzled why virtualbox is giving me permission error

What happens when you do cat /dev/ttyS0?

-- 
Grant Edwards   grant.b.edwardsYow! I'm RELIGIOUS!!
  at   I love a man with
  gmail.coma HAIRPIECE!!  Equip me
   with MISSILES!!




Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Paul Hartman
On Tue, Sep 18, 2012 at 4:09 AM, Neil Bothwick n...@digimed.co.uk wrote:
 Yes, I have blown a UART chip by hotplugging a serial cable, because I'd
 got away with it before.

The strangest thing I fried via hotplug was an Ethernet card via cat5
cable insertion! It made a little electrical pop sound and that was
the end of that.

Actually, I nearly fried myself once when hotplugging coaxial cable TV
wire into my television while everything was powered on. The shock
launched me -- caused me to launch myself, probably -- up into the air
and against a door, fully upright, from a seated position on the
floor. In case anyone is concerned: the TV was unharmed. :)



Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Michael Mol
On Tue, Sep 18, 2012 at 12:17 PM, Paul Hartman
paul.hartman+gen...@gmail.com wrote:
 On Tue, Sep 18, 2012 at 4:09 AM, Neil Bothwick n...@digimed.co.uk wrote:
 Yes, I have blown a UART chip by hotplugging a serial cable, because I'd
 got away with it before.

 The strangest thing I fried via hotplug was an Ethernet card via cat5
 cable insertion! It made a little electrical pop sound and that was
 the end of that.

 Actually, I nearly fried myself once when hotplugging coaxial cable TV
 wire into my television while everything was powered on. The shock
 launched me -- caused me to launch myself, probably -- up into the air
 and against a door, fully upright, from a seated position on the
 floor. In case anyone is concerned: the TV was unharmed. :)

These weren't at the same locale, were they? That sounds like really
electrical ground.

-- 
:wq



Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Michael Mol
On Tue, Sep 18, 2012 at 1:02 PM, Michael Mol mike...@gmail.com wrote:
 On Tue, Sep 18, 2012 at 12:17 PM, Paul Hartman
 paul.hartman+gen...@gmail.com wrote:
 On Tue, Sep 18, 2012 at 4:09 AM, Neil Bothwick n...@digimed.co.uk wrote:
 Yes, I have blown a UART chip by hotplugging a serial cable, because I'd
 got away with it before.

 The strangest thing I fried via hotplug was an Ethernet card via cat5
 cable insertion! It made a little electrical pop sound and that was
 the end of that.

 Actually, I nearly fried myself once when hotplugging coaxial cable TV
 wire into my television while everything was powered on. The shock
 launched me -- caused me to launch myself, probably -- up into the air
 and against a door, fully upright, from a seated position on the
 floor. In case anyone is concerned: the TV was unharmed. :)

 These weren't at the same locale, were they? That sounds like really
 electrical ground.

*like a really bad electrical ground. (htf?)


-- 
:wq



[gentoo-user] MTP auto-mount? (Kindle Fire HD)

2012-09-18 Thread Mark Knecht
Hi all,
   Are there any known tricks for auto-mounting an MTP device? I think
this stuff is used on some newer Android phone so I'm hoping someone
has a nice solution.

   My wife decided to buy the new Kindle Fire HD based on our good
experience with the original Kindle Fire. The new device is very nice
- faster, nicer screen, better networking, etc. - but no longer
presents itself as a USB Mass Storage device like my older Kindle
Fire. Rather it uses Media Transfer Protocol. (MTP) I've managed to
get it mounted using a package from the poly-c overlay called jmtpfs.
Info is located here:

http://research.jacquette.com/jmtpfs-exchanging-files-between-android-devices-and-linux/

   I've copied some movies over and they play fine on the new device
but it's all by-hand manual mounting, etc. When the device is plugged
in I get this sort of info in dmesg:

[15720.370654] usb 2-2: new high-speed USB device number 4 using ehci_hcd
[15720.490935] usb 2-2: New USB device found, idVendor=1949, idProduct=0007
[15720.490940] usb 2-2: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[15720.490944] usb 2-2: Product: Kindle
[15720.490947] usb 2-2: Manufacturer: Amazon
[15720.490949] usb 2-2: SerialNumber: REMOVED

and based on one post I read for Ubuntu (or maybe Arch - I don't
remember) I've created this udev rule:

mark@c2stable ~ $ cat /etc/udev/rules.d/51-android.rules
UBSYSTEM==usb, ATTR{idVendor}==1949, ATTR{idProduct}==0007, MODE=0666
mark@c2stable ~ $

   Anyway, it's all usable but a bit clumsy. Is there a sensible way I
can have the device recognized and mounted via rules in fstab? (Or any
other fixed file?)

Thanks,
Mark



Re: [gentoo-user] Re: virtualbox - serial port

2012-09-18 Thread Joseph



On 09/18/12 15:59, Grant Edwards wrote:

[snip]


I'm in group tty, so I can not figure it out why virtualbox is
complaining.


What happens when you do cat /dev/ttyS0?

--
Grant Edwards   grant.b.edwardsYow! ... bleakness
 at   ... desolation ... plastic
 gmail.comforks ...


It is working know. It was my error :-/
I had it selected host pipe and it should be host device'
One of those days :-)

--
Joseph



Re: [gentoo-user] Kernel options and udisk

2012-09-18 Thread Volker Armin Hemmann
Am Montag, 17. September 2012, 12:57:49 schrieb Dale:
 Volker Armin Hemmann wrote:
  Am Sonntag, 16. September 2012, 20:39:36 schrieb Dale:
  The important part is about 'if you are unsure about this, say N here'.
  Well, I don't think I need USB remote wakeup or anything so I don't
  think I need this but at the same time, udisk is giving me notice that
  it should be there.
  
  you you never thought about turning on your system via keyboard instead of
  crawling under the table?
 
 Actually, no.  I have one of those large HAF 932 cases that is about the
 same height as my keyboard.  It's just about as easy to hit one as it is
 to hit the other.  Add in that I rarely reboot either.  I don't really
 see the need to use my keyboard as a power switch, not for me anyway.  I
 have one that is on top of the case, which is where it should be in my
 opinion.

so you let your box run full power all the time?

Doesn't that sound stupid?

-- 
#163933



Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Volker Armin Hemmann
Am Dienstag, 18. September 2012, 04:50:30 schrieb Dale:

 One would think that modern stuff would have some sort of protection.
 Odd.
 

indeed. The modern stuff with protection is called 'usb'.


-- 
#163933



Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Volker Armin Hemmann
Am Dienstag, 18. September 2012, 13:03:15 schrieb Michael Mol:
 On Tue, Sep 18, 2012 at 1:02 PM, Michael Mol mike...@gmail.com wrote:
  On Tue, Sep 18, 2012 at 12:17 PM, Paul Hartman
  
  paul.hartman+gen...@gmail.com wrote:
  On Tue, Sep 18, 2012 at 4:09 AM, Neil Bothwick n...@digimed.co.uk 
wrote:
  Yes, I have blown a UART chip by hotplugging a serial cable, because I'd
  got away with it before.
  
  The strangest thing I fried via hotplug was an Ethernet card via cat5
  cable insertion! It made a little electrical pop sound and that was
  the end of that.
  
  Actually, I nearly fried myself once when hotplugging coaxial cable TV
  wire into my television while everything was powered on. The shock
  launched me -- caused me to launch myself, probably -- up into the air
  and against a door, fully upright, from a seated position on the
  floor. In case anyone is concerned: the TV was unharmed. :)
  
  These weren't at the same locale, were they? That sounds like really
  electrical ground.
 
 *like a really bad electrical ground. (htf?)

na, it's fine. He grounded the equipment through his body well. Always 
remember: humans are replaceable. A kick ass TV is not.
-- 
#163933



Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Paul Hartman
On Tue, Sep 18, 2012 at 12:03 PM, Michael Mol mike...@gmail.com wrote:
 On Tue, Sep 18, 2012 at 1:02 PM, Michael Mol mike...@gmail.com wrote:
 On Tue, Sep 18, 2012 at 12:17 PM, Paul Hartman
 paul.hartman+gen...@gmail.com wrote:
 On Tue, Sep 18, 2012 at 4:09 AM, Neil Bothwick n...@digimed.co.uk wrote:
 Yes, I have blown a UART chip by hotplugging a serial cable, because I'd
 got away with it before.

 The strangest thing I fried via hotplug was an Ethernet card via cat5
 cable insertion! It made a little electrical pop sound and that was
 the end of that.

 Actually, I nearly fried myself once when hotplugging coaxial cable TV
 wire into my television while everything was powered on. The shock
 launched me -- caused me to launch myself, probably -- up into the air
 and against a door, fully upright, from a seated position on the
 floor. In case anyone is concerned: the TV was unharmed. :)

 These weren't at the same locale, were they? That sounds like really
 electrical ground.

 *like a really bad electrical ground. (htf?)

The ethernet incident happened at work, which should be grounded,
however it was in a cubicle... a cubicle that would give you the
tingles if you touched its metallic edges.

The TV was at my parents' house in the 1980's, an old home that
certainly does not have grounded electrical outlets. Plus I was
probably scooting around tall carpet in socks or something prior to
it. :)



Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Michael Mol
On Tue, Sep 18, 2012 at 2:06 PM, Paul Hartman
paul.hartman+gen...@gmail.com wrote:
 On Tue, Sep 18, 2012 at 12:03 PM, Michael Mol mike...@gmail.com wrote:
 On Tue, Sep 18, 2012 at 1:02 PM, Michael Mol mike...@gmail.com wrote:
 On Tue, Sep 18, 2012 at 12:17 PM, Paul Hartman
 paul.hartman+gen...@gmail.com wrote:
 On Tue, Sep 18, 2012 at 4:09 AM, Neil Bothwick n...@digimed.co.uk wrote:
 Yes, I have blown a UART chip by hotplugging a serial cable, because I'd
 got away with it before.

 The strangest thing I fried via hotplug was an Ethernet card via cat5
 cable insertion! It made a little electrical pop sound and that was
 the end of that.

 Actually, I nearly fried myself once when hotplugging coaxial cable TV
 wire into my television while everything was powered on. The shock
 launched me -- caused me to launch myself, probably -- up into the air
 and against a door, fully upright, from a seated position on the
 floor. In case anyone is concerned: the TV was unharmed. :)

 These weren't at the same locale, were they? That sounds like really
 electrical ground.

 *like a really bad electrical ground. (htf?)

 The ethernet incident happened at work, which should be grounded,
 however it was in a cubicle... a cubicle that would give you the
 tingles if you touched its metallic edges.

 The TV was at my parents' house in the 1980's, an old home that
 certainly does not have grounded electrical outlets. Plus I was
 probably scooting around tall carpet in socks or something prior to
 it. :)

I've nothing to say but that you've given me ample entertainment
today. (and your boss was lucky you hadn't fried the network
switch...) :)

-- 
:wq



Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread J. Roeleveld
Neil Bothwick n...@digimed.co.uk wrote:

On Tue, 18 Sep 2012 09:51:49 +0200, J. Roeleveld wrote:

  Plus, aren't you supposed to only unplug/plug a serial cable when
it
  is off?  I'm not sure if they are sensitive to that but pretty sure
  they were a long time ago.  
 
 Not sure about Serial, I always did even when switched on when using
 external modems in the past and never did have a problem there.

You were lucky, it's like forgetting to look when you cross the road.
Getting away with it once doesn't mean it is safe.

Yes, I have blown a UART chip by hotplugging a serial cable, because
I'd
got away with it before.


-- 
Neil Bothwick

I'm Pink, Therefore I'm Spam

Probably.
Don't have any serial devices anymore. Don't even bother plugging in serial 
port brackets either on mainboards that support it either.

All the devices I have with a serial port (switches/ups) can also be configured 
using a network interface :)

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

Re: [gentoo-user] Kernel options and udisk

2012-09-18 Thread Dale
Volker Armin Hemmann wrote:
 Am Montag, 17. September 2012, 12:57:49 schrieb Dale:
 Volker Armin Hemmann wrote:
 Am Sonntag, 16. September 2012, 20:39:36 schrieb Dale:
 The important part is about 'if you are unsure about this, say N here'.
 Well, I don't think I need USB remote wakeup or anything so I don't
 think I need this but at the same time, udisk is giving me notice that
 it should be there.
 you you never thought about turning on your system via keyboard instead of
 crawling under the table?
 Actually, no.  I have one of those large HAF 932 cases that is about the
 same height as my keyboard.  It's just about as easy to hit one as it is
 to hit the other.  Add in that I rarely reboot either.  I don't really
 see the need to use my keyboard as a power switch, not for me anyway.  I
 have one that is on top of the case, which is where it should be in my
 opinion.
 so you let your box run full power all the time?

 Doesn't that sound stupid?



No.  To me, turning a puter on/off whenever you walk away is sort of
stupid.  Me, I never know when I will be needing my puter and I don't
want to wait for it to boot up and get me logged in every time I want to
use it.  The power it pulls is about the same as me leaving a light bulb
on.  So, in my opinion and for my usage, leaving it on is not stupid. 
Doing the opposite could be closer to stupid.  Same for my TV.  The only
time I turn my TV off is when I am leaving the house for a good long
while.  Before you say that I am wearing out my TV, my last TV was well
over 20 years old and the only repairs to it was replacing the speakers
that dried out.  It was still working when I ran up on this half price
sale for my current TV.  I gave the old TV to a friend and as far as I
know, it still works. 

I'm not saying that *MY* usage should be the same as someone else's.  At
the same time, mine should not be the same as yours or others.  Just as
a example.  I'm downloading TV shows from various websites.  When I get
ready to go to bed, I line up several videos for download.  It may
download for hours while I sleep.  Heck, I sometimes wake up before it
gets through and I add more to the list.  I can't do that if I shutdown
my computer each time I walk away. 

Stupid, not even close.

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Dale
Volker Armin Hemmann wrote:
 Am Dienstag, 18. September 2012, 04:50:30 schrieb Dale:

 One would think that modern stuff would have some sort of protection.
 Odd.

 indeed. The modern stuff with protection is called 'usb'.



Well, I meant for the serial/parallel chips tho.  Surely it can't be
hard to at least keep them from blowing their fuse. 

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread J. Roeleveld
Paul Hartman paul.hartman+gen...@gmail.com wrote:

On Tue, Sep 18, 2012 at 4:09 AM, Neil Bothwick n...@digimed.co.uk
wrote:
 Yes, I have blown a UART chip by hotplugging a serial cable, because
I'd
 got away with it before.

The strangest thing I fried via hotplug was an Ethernet card via cat5
cable insertion! It made a little electrical pop sound and that was
the end of that.

Actually, I nearly fried myself once when hotplugging coaxial cable TV
wire into my television while everything was powered on. The shock
launched me -- caused me to launch myself, probably -- up into the air
and against a door, fully upright, from a seated position on the
floor. In case anyone is concerned: the TV was unharmed. :)

How was the door afterwards? ;)

I think the biggest risk is from powerspikes due to bad earthing of the 
devices. 
-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Michael Mol
On Tue, Sep 18, 2012 at 2:30 PM, Dale rdalek1...@gmail.com wrote:
 Volker Armin Hemmann wrote:
 Am Dienstag, 18. September 2012, 04:50:30 schrieb Dale:

 One would think that modern stuff would have some sort of protection.
 Odd.

 indeed. The modern stuff with protection is called 'usb'.



 Well, I meant for the serial/parallel chips tho.  Surely it can't be
 hard to at least keep them from blowing their fuse.

If it's TTL, no problem. If it's CMOS, it requires extra work (and
cost) in an environment where every penny off of a component is
important. Point is, RS-232 and IEEE-1284 weren't designed for
hotplug, and plug/unplug events are very, very rare. Manufacturers are
under no obligation to extend support beyond spec, and it doesn't make
sense for them to, given that USB is available where it's necessary.

USB, on the other hand, was explicitly designed to handle hotplug. It
even shows in comparison to the connectors it replaces; DB-25, DB-9
and Centronix connectors typiclaly have explicit mechanisms to retain
devices and prevent them from accidentally unplugging. DB-25 and DB-9
connectors didn't originally even come with thumbscrews; I've still
got some cables laying around that require the use of a small
screwdriver. No such manual step with USB, as it's an expected event.

-- 
:wq



Re: [gentoo-user] Kernel options and udisk

2012-09-18 Thread Canek Peláez Valdés
On Tue, Sep 18, 2012 at 1:29 PM, Dale rdalek1...@gmail.com wrote:
 Volker Armin Hemmann wrote:
 Am Montag, 17. September 2012, 12:57:49 schrieb Dale:
 Volker Armin Hemmann wrote:
 Am Sonntag, 16. September 2012, 20:39:36 schrieb Dale:
 The important part is about 'if you are unsure about this, say N here'.
 Well, I don't think I need USB remote wakeup or anything so I don't
 think I need this but at the same time, udisk is giving me notice that
 it should be there.
 you you never thought about turning on your system via keyboard instead of
 crawling under the table?
 Actually, no.  I have one of those large HAF 932 cases that is about the
 same height as my keyboard.  It's just about as easy to hit one as it is
 to hit the other.  Add in that I rarely reboot either.  I don't really
 see the need to use my keyboard as a power switch, not for me anyway.  I
 have one that is on top of the case, which is where it should be in my
 opinion.
 so you let your box run full power all the time?

 Doesn't that sound stupid?



 No.  To me, turning a puter on/off whenever you walk away is sort of
 stupid.  Me, I never know when I will be needing my puter and I don't
 want to wait for it to boot up and get me logged in every time I want to
 use it.  The power it pulls is about the same as me leaving a light bulb
 on.  So, in my opinion and for my usage, leaving it on is not stupid.
 Doing the opposite could be closer to stupid.  Same for my TV.  The only
 time I turn my TV off is when I am leaving the house for a good long
 while.  Before you say that I am wearing out my TV, my last TV was well
 over 20 years old and the only repairs to it was replacing the speakers
 that dried out.  It was still working when I ran up on this half price
 sale for my current TV.  I gave the old TV to a friend and as far as I
 know, it still works.

 I'm not saying that *MY* usage should be the same as someone else's.  At
 the same time, mine should not be the same as yours or others.  Just as
 a example.  I'm downloading TV shows from various websites.  When I get
 ready to go to bed, I line up several videos for download.  It may
 download for hours while I sleep.  Heck, I sometimes wake up before it
 gets through and I add more to the list.  I can't do that if I shutdown
 my computer each time I walk away.

 Stupid, not even close.

Maybe not stupid under some definitions, but a waste of power for
sure. When I leave my house, I hibernate my computer; that way I can
even unplug the regulator where everything is connected, so not even
standby energy is wasted. When I'm in my house but not on the
computer, I suspend it.

When I turn it on from being hibernated, it takes about 10 seconds to
get to my full desktop. When I wake it up from suspension, it takes
less than 2 seconds. When it is suspended, it wastes 5 watts (instead
of 4 when it's turned off, but connected to the power grid), according
to:

http://jeff.ecchi.ca/blog/2012/08/05/staring-into-the-axis-abyss-the-railgun-map/

Of course it would be more comfortable to just leave it on all the
time. It would also be more comfortable to not separate organic and
inorganic waste.

Oh, and by the way, what kind of light bulbs do you use that waste as
much power as your PC? Mine uses 15 watts; it's one of the new CFLs:

http://en.wikipedia.org/wiki/Compact_fluorescent_lamp

It is more expensive, and it's a pain to dispose it; but it gives the
same light that a 75 watts normal light bulb, and it pays itself on
electric bills only. Also, it will last longer.

When I moved in with my GF, her electric bill shoot up to the roof (I
brought my 46 LCD TV, PlayStation 3, and in total 5 computers and
other electronics). After a couple of months of shock of seeing the
electric bills, we started to do this kind of stuff
(suspending/hibernating our machines, using CFL instead of normal
light bulbs, etc.), and we cut the spending almost in four.

It is a *little* inconvenience (waiting a few seconds for the TV, the
PS3 or the PC to wake up), but huge money savings.

THAT is certainly not stupid.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Neil Bothwick
On Tue, 18 Sep 2012 13:30:52 -0500, Dale wrote:

  One would think that modern stuff would have some sort of protection.
  Odd.
   
  indeed. The modern stuff with protection is called 'usb'.

 Well, I meant for the serial/parallel chips tho.  Surely it can't be
 hard to at least keep them from blowing their fuse. 

The problem is in the connectors, it's too easy to get a static discharge
when connecting them. USB has grounded shields over the connectors.


-- 
Neil Bothwick

I@love~my,;It's%made in Taiwa~##$ ` #@


signature.asc
Description: PGP signature


Re: [gentoo-user] MTP auto-mount? (Kindle Fire HD)

2012-09-18 Thread Neil Bothwick
On Tue, 18 Sep 2012 10:37:57 -0700, Mark Knecht wrote:

 mark@c2stable ~ $ cat /etc/udev/rules.d/51-android.rules
 UBSYSTEM==usb, ATTR{idVendor}==1949, ATTR{idProduct}==0007,
 MODE=0666 mark@c2stable ~ $
 
Anyway, it's all usable but a bit clumsy. Is there a sensible way I
 can have the device recognized and mounted via rules in fstab? (Or any
 other fixed file?)

You could have your udev rule RUN mtpfs to mount the device. It takes a
few seconds to mount it, so I'd run it with .


-- 
Neil Bothwick

Okay, who put a stop payment on my reality check?


signature.asc
Description: PGP signature


Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Dale
Michael Mol wrote:
 On Tue, Sep 18, 2012 at 2:30 PM, Dale rdalek1...@gmail.com wrote:
 Volker Armin Hemmann wrote:
 Am Dienstag, 18. September 2012, 04:50:30 schrieb Dale:

 One would think that modern stuff would have some sort of protection.
 Odd.

 indeed. The modern stuff with protection is called 'usb'.


 Well, I meant for the serial/parallel chips tho.  Surely it can't be
 hard to at least keep them from blowing their fuse.
 If it's TTL, no problem. If it's CMOS, it requires extra work (and
 cost) in an environment where every penny off of a component is
 important. Point is, RS-232 and IEEE-1284 weren't designed for
 hotplug, and plug/unplug events are very, very rare. Manufacturers are
 under no obligation to extend support beyond spec, and it doesn't make
 sense for them to, given that USB is available where it's necessary.

 USB, on the other hand, was explicitly designed to handle hotplug. It
 even shows in comparison to the connectors it replaces; DB-25, DB-9
 and Centronix connectors typiclaly have explicit mechanisms to retain
 devices and prevent them from accidentally unplugging. DB-25 and DB-9
 connectors didn't originally even come with thumbscrews; I've still
 got some cables laying around that require the use of a small
 screwdriver. No such manual step with USB, as it's an expected event.


I know it would take extra work but one would think that some company
would do it then everyone else will follow.  I'm not saying the
communication part should work when you plug up something, just that it
shouldn't burn out a chip so that it never works again.  It should at
least have some forgiveness to the occasional accident of unplugging a
cable. 

Oh well, me thinking it isn't going to change it.  ;-) 

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Dale
Neil Bothwick wrote:
 On Tue, 18 Sep 2012 13:30:52 -0500, Dale wrote:

 One would think that modern stuff would have some sort of protection.
 Odd.
  
 indeed. The modern stuff with protection is called 'usb'.
 Well, I meant for the serial/parallel chips tho.  Surely it can't be
 hard to at least keep them from blowing their fuse. 
 The problem is in the connectors, it's too easy to get a static discharge
 when connecting them. USB has grounded shields over the connectors.




Somewhat off topic, how about a monitor that uses the 15 pin connector? 
I try not to do those when something is powered up but have done it a
couple times.  Is that one safe to hotplug?  I never thought about that
until this came up. 

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] Kernel options and udisk

2012-09-18 Thread Dale
Canek Peláez Valdés wrote:
 On Tue, Sep 18, 2012 at 1:29 PM, Dale rdalek1...@gmail.com wrote:
 Volker Armin Hemmann wrote:
 Am Montag, 17. September 2012, 12:57:49 schrieb Dale:
 Volker Armin Hemmann wrote:
 Am Sonntag, 16. September 2012, 20:39:36 schrieb Dale:
 The important part is about 'if you are unsure about this, say N here'.
 Well, I don't think I need USB remote wakeup or anything so I don't
 think I need this but at the same time, udisk is giving me notice that
 it should be there.
 you you never thought about turning on your system via keyboard instead of
 crawling under the table?
 Actually, no.  I have one of those large HAF 932 cases that is about the
 same height as my keyboard.  It's just about as easy to hit one as it is
 to hit the other.  Add in that I rarely reboot either.  I don't really
 see the need to use my keyboard as a power switch, not for me anyway.  I
 have one that is on top of the case, which is where it should be in my
 opinion.
 so you let your box run full power all the time?

 Doesn't that sound stupid?


 No.  To me, turning a puter on/off whenever you walk away is sort of
 stupid.  Me, I never know when I will be needing my puter and I don't
 want to wait for it to boot up and get me logged in every time I want to
 use it.  The power it pulls is about the same as me leaving a light bulb
 on.  So, in my opinion and for my usage, leaving it on is not stupid.
 Doing the opposite could be closer to stupid.  Same for my TV.  The only
 time I turn my TV off is when I am leaving the house for a good long
 while.  Before you say that I am wearing out my TV, my last TV was well
 over 20 years old and the only repairs to it was replacing the speakers
 that dried out.  It was still working when I ran up on this half price
 sale for my current TV.  I gave the old TV to a friend and as far as I
 know, it still works.

 I'm not saying that *MY* usage should be the same as someone else's.  At
 the same time, mine should not be the same as yours or others.  Just as
 a example.  I'm downloading TV shows from various websites.  When I get
 ready to go to bed, I line up several videos for download.  It may
 download for hours while I sleep.  Heck, I sometimes wake up before it
 gets through and I add more to the list.  I can't do that if I shutdown
 my computer each time I walk away.

 Stupid, not even close.
 Maybe not stupid under some definitions, but a waste of power for
 sure. When I leave my house, I hibernate my computer; that way I can
 even unplug the regulator where everything is connected, so not even
 standby energy is wasted. When I'm in my house but not on the
 computer, I suspend it.

 When I turn it on from being hibernated, it takes about 10 seconds to
 get to my full desktop. When I wake it up from suspension, it takes
 less than 2 seconds. When it is suspended, it wastes 5 watts (instead
 of 4 when it's turned off, but connected to the power grid), according
 to:

 http://jeff.ecchi.ca/blog/2012/08/05/staring-into-the-axis-abyss-the-railgun-map/

 Of course it would be more comfortable to just leave it on all the
 time. It would also be more comfortable to not separate organic and
 inorganic waste.

 Oh, and by the way, what kind of light bulbs do you use that waste as
 much power as your PC? Mine uses 15 watts; it's one of the new CFLs:

 http://en.wikipedia.org/wiki/Compact_fluorescent_lamp

 It is more expensive, and it's a pain to dispose it; but it gives the
 same light that a 75 watts normal light bulb, and it pays itself on
 electric bills only. Also, it will last longer.

 When I moved in with my GF, her electric bill shoot up to the roof (I
 brought my 46 LCD TV, PlayStation 3, and in total 5 computers and
 other electronics). After a couple of months of shock of seeing the
 electric bills, we started to do this kind of stuff
 (suspending/hibernating our machines, using CFL instead of normal
 light bulbs, etc.), and we cut the spending almost in four.

 It is a *little* inconvenience (waiting a few seconds for the TV, the
 PS3 or the PC to wake up), but huge money savings.

 THAT is certainly not stupid.

 Regards.

I guess you pay more per Kwatt than I do then.  I would much rather cut
back on something else than my computer.

I still use the old style bulbs a lot.  I do have some of those little
swirly things but not everywhere. 

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] Kernel options and udisk

2012-09-18 Thread Alan McKinnon
On Tue, 18 Sep 2012 13:53:53 -0500
Canek Peláez Valdés can...@gmail.com wrote:

 When I moved in with my GF, her electric bill shoot up to the roof (I
 brought my 46 LCD TV, PlayStation 3, and in total 5 computers and
 other electronics). After a couple of months of shock of seeing the
 electric bills, we started to do this kind of stuff
 (suspending/hibernating our machines, using CFL instead of normal
 light bulbs, etc.), and we cut the spending almost in four.

Apartment living maybe?

I have 1 XBox, 2 Wii's, 40 LED TV, 22 LED monitor, 16 LCD monitor, an
xbmc frontend, 2 el-cheap android tablets permanently plugged in, 1
desktop, 2 HP microservers and 3 laptops running almost 24/7. And about
10 incandescent bulbs all evening, 2 neons and umpteen CFLs.

It's a lot of power, sure.

And all quite insignificant when compared to what the swimming pool
pump uses..

All a matter of perspective I suppose :-)

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Paul Hartman
On Tue, Sep 18, 2012 at 3:21 PM, Dale rdalek1...@gmail.com wrote:
 Neil Bothwick wrote:
 On Tue, 18 Sep 2012 13:30:52 -0500, Dale wrote:

 One would think that modern stuff would have some sort of protection.
 Odd.

 indeed. The modern stuff with protection is called 'usb'.
 Well, I meant for the serial/parallel chips tho.  Surely it can't be
 hard to at least keep them from blowing their fuse.
 The problem is in the connectors, it's too easy to get a static discharge
 when connecting them. USB has grounded shields over the connectors.




 Somewhat off topic, how about a monitor that uses the 15 pin connector?
 I try not to do those when something is powered up but have done it a
 couple times.  Is that one safe to hotplug?  I never thought about that
 until this came up.

VGA is not hot-pluggable by specification, but DVI and HDMI are hot-pluggable.



Re: [gentoo-user] Kernel options and udisk

2012-09-18 Thread Dale
Alan McKinnon wrote:
 On Tue, 18 Sep 2012 13:53:53 -0500
 Canek Peláez Valdés can...@gmail.com wrote:

 When I moved in with my GF, her electric bill shoot up to the roof (I
 brought my 46 LCD TV, PlayStation 3, and in total 5 computers and
 other electronics). After a couple of months of shock of seeing the
 electric bills, we started to do this kind of stuff
 (suspending/hibernating our machines, using CFL instead of normal
 light bulbs, etc.), and we cut the spending almost in four.
 Apartment living maybe?

 I have 1 XBox, 2 Wii's, 40 LED TV, 22 LED monitor, 16 LCD monitor, an
 xbmc frontend, 2 el-cheap android tablets permanently plugged in, 1
 desktop, 2 HP microservers and 3 laptops running almost 24/7. And about
 10 incandescent bulbs all evening, 2 neons and umpteen CFLs.

 It's a lot of power, sure.

 And all quite insignificant when compared to what the swimming pool
 pump uses..

 All a matter of perspective I suppose :-)



My biggest expenses, refrigeration and heating/cooling.  I have a large
fridge, two deep freezers, two window A/C's for summer and a large
heater for the winter.  Compare any of those to my computer, the
computer is a rounding error.  My main rig, monitor, router, DSL modem
and printer pulls about 150 watts at most.  At most would be while it is
compiling or something.  When idle, ~100 watts.  I figured it up once
and I think it costs about $12.00 a month to run.  Heck, when I have a
$200.00 power bill, rounding error comes to mind.  Heck, taxes and fees
on the power bill is more than my puter uses.  I would much rather fuss
about the taxes than my puter.  I use my puter.  lol

I think you hit it pretty good tho Alan.  It's perspective. 

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] Kernel options and udisk

2012-09-18 Thread Alan McKinnon
On Tue, 18 Sep 2012 16:03:15 -0500
Dale rdalek1...@gmail.com wrote:

 My biggest expenses, refrigeration and heating/cooling.  I have a
 large fridge, two deep freezers, two window A/C's for summer and a
 large heater for the winter.  Compare any of those to my computer, the
 computer is a rounding error.  My main rig, monitor, router, DSL modem
 and printer pulls about 150 watts at most.  At most would be while it
 is compiling or something.  When idle, ~100 watts.  I figured it up
 once and I think it costs about $12.00 a month to run.  Heck, when I
 have a $200.00 power bill, rounding error comes to mind.  Heck, taxes
 and fees on the power bill is more than my puter uses.  I would much
 rather fuss about the taxes than my puter.  I use my puter.  lol
 
 I think you hit it pretty good tho Alan.  It's perspective. 


And my gasoline bill for two cars and two bikes is double my power
bill :-)

I account for two thirds of the price and one third of the mileage (I
have a heavy foot and an even heavier wrist). I should probably put
some attention on that :-)



-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Alan McKinnon
On Tue, 18 Sep 2012 16:00:00 -0500
Paul Hartman paul.hartman+gen...@gmail.com wrote:

 On Tue, Sep 18, 2012 at 3:21 PM, Dale rdalek1...@gmail.com wrote:
  Neil Bothwick wrote:
  On Tue, 18 Sep 2012 13:30:52 -0500, Dale wrote:
 
  One would think that modern stuff would have some sort of
  protection. Odd.
 
  indeed. The modern stuff with protection is called 'usb'.
  Well, I meant for the serial/parallel chips tho.  Surely it can't
  be hard to at least keep them from blowing their fuse.
  The problem is in the connectors, it's too easy to get a static
  discharge when connecting them. USB has grounded shields over the
  connectors.
 
 
 
 
  Somewhat off topic, how about a monitor that uses the 15 pin
  connector? I try not to do those when something is powered up but
  have done it a couple times.  Is that one safe to hotplug?  I never
  thought about that until this came up.
 
 VGA is not hot-pluggable by specification, but DVI and HDMI are
 hot-pluggable.

As someone who's done more electronics work than he ever should, any
device that can suffer electrical damage simply by being plugged and
unplugged from the thing it's supposed to be plugged into is a shoddy
design and really should be in the bin.

The only thing I ever found that was susceptible to this was ancient
RS232 kit, and the cause was always inadequate shielding and isolation.
In the last 10 years I only know of one product sold that has this
problem and sadly that's the first run of the Raspberry Pi... 

You can safely plug and unplug VGA all day long and be hit by lightning
more often than damage the monitor, repair techies have been doing it
for years. VGA connectors are shrouded, you are virtually guaranteed an
earth connection before any of the data pins make contact and you'll
never have a situation where 25V is trying to shake hands with 5V (that
was a major problem with RS232 stuff).

Of course, there's no guarantee the picture will show on the screen if
you hotplug VGA, but there's no inherent danger of damage either.

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] MTP auto-mount? (Kindle Fire HD)

2012-09-18 Thread Mark Knecht
On Tue, Sep 18, 2012 at 12:54 PM, Neil Bothwick n...@digimed.co.uk wrote:
 On Tue, 18 Sep 2012 10:37:57 -0700, Mark Knecht wrote:

 mark@c2stable ~ $ cat /etc/udev/rules.d/51-android.rules
 UBSYSTEM==usb, ATTR{idVendor}==1949, ATTR{idProduct}==0007,
 MODE=0666 mark@c2stable ~ $

Anyway, it's all usable but a bit clumsy. Is there a sensible way I
 can have the device recognized and mounted via rules in fstab? (Or any
 other fixed file?)

 You could have your udev rule RUN mtpfs to mount the device. It takes a
 few seconds to mount it, so I'd run it with .


 --
 Neil Bothwick

 Okay, who put a stop payment on my reality check?

Seems like a reasonable enough solution for my needs.

Thanks,
Mark



[gentoo-user] Re: MTP auto-mount? (Kindle Fire HD)

2012-09-18 Thread Grant Edwards
On 2012-09-18, Mark Knecht markkne...@gmail.com wrote:
 On Tue, Sep 18, 2012 at 12:54 PM, Neil Bothwick n...@digimed.co.uk wrote:
 On Tue, 18 Sep 2012 10:37:57 -0700, Mark Knecht wrote:

 mark@c2stable ~ $ cat /etc/udev/rules.d/51-android.rules
 UBSYSTEM==usb, ATTR{idVendor}==1949, ATTR{idProduct}==0007,
 MODE=0666 mark@c2stable ~ $

Anyway, it's all usable but a bit clumsy. Is there a sensible way I
 can have the device recognized and mounted via rules in fstab? (Or any
 other fixed file?)

 You could have your udev rule RUN mtpfs to mount the device. It takes a
 few seconds to mount it, so I'd run it with .

 Seems like a reasonable enough solution for my needs.

Does jmtpfs seem to be working reliably?

I just ordered a Nexus Galaxy (which uses MTP), and Google has found
reports of flakey behavior with mtpfs.  I've heard good things about
go-mtpfs (but you have to set up the Go compiler).

And there's also gmtp...

-- 
Grant Edwards   grant.b.edwardsYow! Gee, I feel kind of
  at   LIGHT in the head now,
  gmail.comknowing I can't make my
   satellite dish PAYMENTS!




Re: [gentoo-user] Kernel options and udisk

2012-09-18 Thread Peter Humphrey
On Tuesday 18 September 2012 22:03:15 Dale wrote:

 My biggest expenses, refrigeration and heating/cooling.  I have a
 large fridge, two deep freezers, two window A/C's for summer and a
 large heater for the winter.  Compare any of those to my computer,
 the computer is a rounding error.  My main rig, monitor, router, DSL
 modem and printer pulls about 150 watts at most.  At most would be
 while it is compiling or something.  When idle, ~100 watts.  I
 figured it up once and I think it costs about $12.00 a month to run.
 Heck, when I have a $200.00 power bill, rounding error comes to
 mind.  Heck, taxes and fees on the power bill is more than my puter
 uses.  I would much rather fuss about the taxes than my puter.  I
 use my puter.  lol

Didn't you say once that you run a BOINC application? I forget which 
one. That would keep your CPU use at 100%. Here I run four at a time 
continuously, and according to gkrellm the CPUs sit at 60 - 65C. Just 
giving a little back to the community that I gain from.

I have an audio amplifier downstairs that consumes 96W on standby. Now 
that _is_ excessive. Keeps that corner of the room warm though.

-- 
Rgds
Peter



[gentoo-user] new machine : mail out, but not in

2012-09-18 Thread Philip Webb
The rest of my new box is working, but -- as expected -- mail isn't.
I can send mail, which is recorded in  syslog   arrives at this machine,
but I can't grab mail from the  2  mail servers out there (ISP + UoT).
The cron job in /var/spool/cron/crontabs is the same as here
with the same permissions   syslog  says it runs it every  5 min .
 .fetchmailrc  is the same there as here  so is  .procmailrc .
I've tried remerging Fetchmail Procmail  their deps  checked USE flags.
There definitely was mail to download, as the test msgs I sent
had been waiting some time when I got them on this machine
(yes, I always send  2  of them via each of the mail servers).

One thought is that it mb due to the presence of Python3 on the new machine:
there's a line at the end of the Fetchmail emerge output
which says something re CPython.

Mail is usually difficult to get going, as there are so many pieces
 they all have to work correctly.  Any suggestions are very welcome.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] Re: MTP auto-mount? (Kindle Fire HD)

2012-09-18 Thread Mark Knecht
On Tue, Sep 18, 2012 at 3:23 PM, Grant Edwards
grant.b.edwa...@gmail.com wrote:
 On 2012-09-18, Mark Knecht markkne...@gmail.com wrote:
 On Tue, Sep 18, 2012 at 12:54 PM, Neil Bothwick n...@digimed.co.uk wrote:
 On Tue, 18 Sep 2012 10:37:57 -0700, Mark Knecht wrote:

 mark@c2stable ~ $ cat /etc/udev/rules.d/51-android.rules
 UBSYSTEM==usb, ATTR{idVendor}==1949, ATTR{idProduct}==0007,
 MODE=0666 mark@c2stable ~ $

Anyway, it's all usable but a bit clumsy. Is there a sensible way I
 can have the device recognized and mounted via rules in fstab? (Or any
 other fixed file?)

 You could have your udev rule RUN mtpfs to mount the device. It takes a
 few seconds to mount it, so I'd run it with .

 Seems like a reasonable enough solution for my needs.

 Does jmtpfs seem to be working reliably?

 I just ordered a Nexus Galaxy (which uses MTP), and Google has found
 reports of flakey behavior with mtpfs.  I've heard good things about
 go-mtpfs (but you have to set up the Go compiler).

 And there's also gmtp...

 --
 Grant Edwards   grant.b.edwardsYow! Gee, I feel kind of
   at   LIGHT in the head now,
   gmail.comknowing I can't make my
satellite dish PAYMENTS!



If mounting once and transferring 4GB of data in 6 files, unmounting
and then playing 5 minutes of video quaifies as reliable then yep,
it's reliable. ;-)

All I can say at this point is it seemed to work the way it was
advertised on the link in the first post. I'll post back over time as
I learn more. Possibly you an others who run into similar usage models
will too.

Cheers,
Mark



Re: [gentoo-user] Kernel options and udisk

2012-09-18 Thread Dale
Peter Humphrey wrote:
 On Tuesday 18 September 2012 22:03:15 Dale wrote:

 My biggest expenses, refrigeration and heating/cooling.  I have a
 large fridge, two deep freezers, two window A/C's for summer and a
 large heater for the winter.  Compare any of those to my computer,
 the computer is a rounding error.  My main rig, monitor, router, DSL
 modem and printer pulls about 150 watts at most.  At most would be
 while it is compiling or something.  When idle, ~100 watts.  I
 figured it up once and I think it costs about $12.00 a month to run.
 Heck, when I have a $200.00 power bill, rounding error comes to
 mind.  Heck, taxes and fees on the power bill is more than my puter
 uses.  I would much rather fuss about the taxes than my puter.  I
 use my puter.  lol
 Didn't you say once that you run a BOINC application? I forget which 
 one. That would keep your CPU use at 100%. Here I run four at a time 
 continuously, and according to gkrellm the CPUs sit at 60 - 65C. Just 
 giving a little back to the community that I gain from.

 I have an audio amplifier downstairs that consumes 96W on standby. Now 
 that _is_ excessive. Keeps that corner of the room warm though.



I used to run folding but only in the winter time.  I don't mind the
heat during the winter since I have electric heat anyway.  It doesn't
matter if the heat comes from the puter or from the regular heater, it's
still heat from the power company.  I may as well give back a little
when I can.  Thing is, I have had issues with folding and have not run
it in a while.  I started the service but they had no units for me to
download and work on.  So, when spring came along, I stopped it.  I
don't think it ever had a single unit all last winter.  I chose folding
because I have health issues myself.  It may not help me but it may help
someone else.  Maybe someone else will do something to help folks like
me.  :/ 

I unhook things that I don't use often or rarely.  I have a large air
compressor that I turn off unless I plan to use it right away.  I even
have a small tank for little things, like putting air in the wheel
barrow or something like that.  I try to conserve on the things that are
not used often but don't on the things that I use a lot.  I would never
think of cutting off my fridge or deep freezers just to save on energy. 
If my food spoils, that would cost me more than I save.  If I had a
light bulb that took a minute to come on, I'd likely leave it on a lot
if I use it a lot.  Why, I don't want to have to wait for it every time
I need it.  If it costs that much to run, time for a better bulb or
something. 

96 watts for standby is excessive for sure.  What the heck is that thing
doing with all that power?  O_O 

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Dale
Alan McKinnon wrote:
 As someone who's done more electronics work than he ever should, any
 device that can suffer electrical damage simply by being plugged and
 unplugged from the thing it's supposed to be plugged into is a shoddy
 design and really should be in the bin. The only thing I ever found
 that was susceptible to this was ancient RS232 kit, and the cause was
 always inadequate shielding and isolation. In the last 10 years I only
 know of one product sold that has this problem and sadly that's the
 first run of the Raspberry Pi... You can safely plug and unplug VGA
 all day long and be hit by lightning more often than damage the
 monitor, repair techies have been doing it for years. VGA connectors
 are shrouded, you are virtually guaranteed an earth connection before
 any of the data pins make contact and you'll never have a situation
 where 25V is trying to shake hands with 5V (that was a major problem
 with RS232 stuff). Of course, there's no guarantee the picture will
 show on the screen if you hotplug VGA, but there's no inherent danger
 of damage either. 

I have done that with monitors a few times, no problems but was
curious.  I have had that problem with a PS/2 keyboard tho.  That has
happened to me twice and I saw that with my own eyes.  I have heard of
people who have had the same thing happen so I only swap my keyboard
when my rig is off.  I don't want to build another rig.  ;-) 

New question about HDMI.  I have a pretty nice video card that has a 15
pin connector and HDMI.  Do I have to do anything special to use the
HDMI or does it just send the same signal to both connectors?  I have my
monitor hooked to the 15 pin connector but would like to hook my TV to
the HDMI connector.  Same signal on both is fine with me.  I would just
rather watch movies and such on my TV instead of my monitor.  I googled
a while back and just couldn't figure out how this works.  It seems to
me that it works different based on how it is set up or something.  My
card is Nvidia and it is a GT220 with 1Gb of ram.  It was donated so no
links or anything.

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] MTP auto-mount? (Kindle Fire HD)

2012-09-18 Thread Daniel Frey
On 09/18/2012 10:37 AM, Mark Knecht wrote:
 Hi all,
Are there any known tricks for auto-mounting an MTP device? I think
 this stuff is used on some newer Android phone so I'm hoping someone
 has a nice solution.

MTP is used on a quite a few newer Android devices, including my Nexus
7. I haven't found an automount solution yet, but it is possible to
create an fstab entry, though

 
My wife decided to buy the new Kindle Fire HD based on our good
 experience with the original Kindle Fire. The new device is very nice
 - faster, nicer screen, better networking, etc. - but no longer
 presents itself as a USB Mass Storage device like my older Kindle
 Fire. Rather it uses Media Transfer Protocol. (MTP) I've managed to
 get it mounted using a package from the poly-c overlay called jmtpfs.
 Info is located here:
 
 http://research.jacquette.com/jmtpfs-exchanging-files-between-android-devices-and-linux/
 
I've copied some movies over and they play fine on the new device
 but it's all by-hand manual mounting, etc. When the device is plugged
 in I get this sort of info in dmesg:
 
 [15720.370654] usb 2-2: new high-speed USB device number 4 using ehci_hcd
 [15720.490935] usb 2-2: New USB device found, idVendor=1949, idProduct=0007
 [15720.490940] usb 2-2: New USB device strings: Mfr=2, Product=3, 
 SerialNumber=4
 [15720.490944] usb 2-2: Product: Kindle
 [15720.490947] usb 2-2: Manufacturer: Amazon
 [15720.490949] usb 2-2: SerialNumber: REMOVED
 
 and based on one post I read for Ubuntu (or maybe Arch - I don't
 remember) I've created this udev rule:
 
 mark@c2stable ~ $ cat /etc/udev/rules.d/51-android.rules
 UBSYSTEM==usb, ATTR{idVendor}==1949, ATTR{idProduct}==0007, MODE=0666
 mark@c2stable ~ $

I documented what I had to do to mount my Nexus 7 on the forums, under
my own Nexus 7 thread, although now that I think about it, I don't think
I put an fstab entry in it. I do have one in my /etc/fstab, though:

mtpfs  /mnt/nexus7  fuse  user,noauto,allow_other  0 0

Make sure the mountpoint will be writeable.

Anyway, it's all usable but a bit clumsy. Is there a sensible way I
 can have the device recognized and mounted via rules in fstab? (Or any
 other fixed file?)

I haven't looked to see if there's a way to automount it yet though.

 
 Thanks,
 Mark



Re: [gentoo-user] UPS and serial or USB connections

2012-09-18 Thread Paul Hartman
On Tue, Sep 18, 2012 at 7:33 PM, Dale rdalek1...@gmail.com wrote:
 New question about HDMI.  I have a pretty nice video card that has a 15
 pin connector and HDMI.  Do I have to do anything special to use the
 HDMI or does it just send the same signal to both connectors?  I have my
 monitor hooked to the 15 pin connector but would like to hook my TV to
 the HDMI connector.  Same signal on both is fine with me.  I would just
 rather watch movies and such on my TV instead of my monitor.  I googled
 a while back and just couldn't figure out how this works.  It seems to
 me that it works different based on how it is set up or something.  My
 card is Nvidia and it is a GT220 with 1Gb of ram.  It was donated so no
 links or anything.

If you use the nvidia-drivers package you should also emerge
nvidia-settings, which has a nice GUI that will let you configure the
multiple screens and decide how you'd like to treat them.



[gentoo-user] new machine : mail problem : solved

2012-09-18 Thread Philip Webb
Yet another obscure + unexpected bump to trip over.

I carefully copied  .fetchmailrc  from the other machine
-- I'm now using the new one to send this -- made sure
it was owned by 'purslow' (user)  had read permissions.  Not enough !

Could I get error msgs ?  How could I find out what it was doing ?
Google showed msgs from others with this type of problem
 what they were doing was running 'fetchmail -v'.
I hadn't thought that I could run it myself (slightly red face).

RTFM : front + centre it says to try 'fetchmail -vvv --nodetach --nosyslog'.
That immediately told me the very non-obvious but crucial information :
 ~/.fetchmail must have no more permissions than 700.  Whyever ?

So 'chmod', wait till the next 5-min point at which the script runs
 yes, there are my test msgs from the older machine waiting for me !

This is yet another example of what was described in a recent thread :
Gentoo may need a lot of time to install  some time to maintain
-- like training, then exercising a dog, perhaps -- ,
but the problems are rarely   1  layer deep  there's lots of help.

HTH others.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca