Re: [gentoo-user] new machine : suddenly Python 3 appears
On Sun, 16 Sep 2012 20:24:01 -0400, Philip Webb wrote: We've been warned not to use Python 3 , so it's not installed in this box, but it was included along with Python 2 in the Stage3 for the new machine. I now find that 13 pkgs have been compiled relying on it Portage refuses to unmerge it. Is this safe ? Perfectly safe, because we weren't warned to not use it, only to not set it as the default. That is reasonable because older scripts won't be aware of the differences between python 2 and 3, while newer scripts can explicitly call whichever version they need. The only problem with setting python 3 as the default is that some older scripts may break. Since portage became python3- aware there is no reason to not have it installed beyond the 30MB of disk space it occupies. -- Neil Bothwick WinErr 00C: Memory hog error - More Ram needed. More! More! More! signature.asc Description: PGP signature
[gentoo-user] Warning when installing/updating clucene
Hi all, I thought I'd posted about this way back when I opened the bug at sourceforge: https://sourceforge.net/tracker/?func=detailaid=3494798group_id=80013atid=558446 but didn't find anything in my local archives, so I guess I didn't... Does anyone use clucene? I'm planning on enabling FTS (full text search) on a new dovecot server, and was planning on using clucene, but would like to see about getting this warning taken care of (if it is indedd something I need to be worried about)... I only got one response on the bug tracker (a month after my original report, and that only after I pinged for a reply) saying they weren't doing much work on it at the moment and that they'd look into it in a few days, then nothing - and that was back in March. Here is the warning: QA Notice: Package triggers severe warnings which indicate that it may exhibit random runtime failures. /var/tmp/portage/dev-cpp/clucene-2.3.3.4-r4/work/clucene-core-2.3.3.4/src/core/CLucene/index/DocumentsWriter.cpp:129:33: warning: passing NULL to non-pointer argument 2 of ‘void* memset(void*, int, size_t)’ Please do not file a Gentoo bug and instead report the above QA issues directly to the upstream developers of this software. Homepage:http://clucene.sourceforge.net/ I'm assuming everyone gets this warning, so am wondering what it means, and whether or not I should even bother with clucene. Lucene++ appears to possibly be the new lucene implementation, but it is yuck java based...
Re: [gentoo-user] Warning when installing/updating clucene
On 2012-09-17 9:35 AM, Tanstaafl tansta...@libertytrek.org wrote: Hi all, I thought I'd posted about this way back when I opened the bug at sourceforge: https://sourceforge.net/tracker/?func=detailaid=3494798group_id=80013atid=558446 but didn't find anything in my local archives, so I guess I didn't... Does anyone use clucene? I'm planning on enabling FTS (full text search) on a new dovecot server, and was planning on using clucene, but would like to see about getting this warning taken care of (if it is indedd something I need to be worried about)... Never mind, just got a reply from the dev that he had fixed it and the next update would contain the fix... I'm still curious if I should not go down that road and use something else for FTS...
Re: [gentoo-user] USB automount
Am 16.09.2012 20:45, schrieb Canek Peláez Valdés: On Fri, Sep 14, 2012 at 12:42 AM, Stefan G. Weichinger li...@xunil.at wrote: [snip] Great to hear, thanks so far. Looking forward to his reply Stefan, do you use systemd? I don't boot with systemd now (yes, kinda green) ... but have the USE-flags set. I will re-compile the mentioned packages without that flag now, to test. Right now I have some weird issue with an erratic mouse, maybe this gets fixed with today's updates as well (just returned to my office now ...) Reports soon, thanks!
Re: [gentoo-user] Warning when installing/updating clucene
On Mon, Sep 17, 2012 at 9:46 AM, Tanstaafl tansta...@libertytrek.org wrote: On 2012-09-17 9:35 AM, Tanstaafl tansta...@libertytrek.org wrote: Hi all, I thought I'd posted about this way back when I opened the bug at sourceforge: https://sourceforge.net/tracker/?func=detailaid=3494798group_id=80013atid=558446 but didn't find anything in my local archives, so I guess I didn't... Does anyone use clucene? I'm planning on enabling FTS (full text search) on a new dovecot server, and was planning on using clucene, but would like to see about getting this warning taken care of (if it is indedd something I need to be worried about)... Never mind, just got a reply from the dev that he had fixed it and the next update would contain the fix... I'm still curious if I should not go down that road and use something else for FTS... clucene looks like the thing to use right now, unless you want to use the full Java-based Apache Lucene. I was just looking at it this morning as a possible basis for a solution to a problem of my own[1], since strigi uses it. [1] http://mmol-6453.livejournal.com/279757.html -- :wq
Re: [gentoo-user] Warning when installing/updating clucene
On 2012-09-17 10:25 AM, Michael Mol mike...@gmail.com wrote: On Mon, Sep 17, 2012 at 9:46 AM, Tanstaafltansta...@libertytrek.org wrote: Never mind, just got a reply from the dev that he had fixed it and the next update would contain the fix... I'm still curious if I should not go down that road and use something else for FTS... clucene looks like the thing to use right now, unless you want to use the full Java-based Apache Lucene. I was just looking at it this morning as a possible basis for a solution to a problem of my own[1], since strigi uses it. Thanks Michael... Just to wrap up this thread, in case anyone is interested, because Timo (dovecot author) had replied in a similar thread on the dc list that he thought there was talk of merging clucene and lucene++, I queried the clucene author after he replied he had fixed this issue, and here is his reply: More or less it's true. About a year ago we started to make Lucene++ to the new CLucene version, as Lucene++ (also written in C++) is a port of a newer Apache Lucene version (written in Java) as the one CLucene is a port of. But we did not want to simply merge them, but to adapt Lucene++ to the design principles of CLucene. E.g., Lucene++ makes heavy use of shared pointers. And in CLucene we wanted to reduce this usage in favor of performance. But this not finished and I cannot say when it will finished. Nevertheless, the new version of CLucene (if any) will be also C++ and not Java. Best regards, Veit
Re: [gentoo-user] Apache forked itself to death...
On 16-Sep-12 20:06, Michael Hampicke wrote: * Each Apache process is consuming 80-100MB of RAM. * Squid is consuming 666MB of RAM * memcached is consuming 822MB of RAM * mysqld is consuming 886MB of RAM * The kernel is using 110MB of RAM for buffers * The kernel is using 851MB of RAM for file cache (which benefits squid). As Jerry did not specify which content his apache is serving, I used 12MB of RAM per apache process (as a general rule of thumb). But if it's dynamic content generated by a scripting language like php it could be a lot more. But I think 80-100MB of RAM with php in the back should be a good guess. Important thing is: MaxClients x memory footprint per apache process available memory :-) If you have lots of concurrent requests you may be better suited with something lighter like lighttpd. Or start caching of some sort, like Michael does. Thank you for all tipstweaks. My apache is serving mostly dynamic content (drupal cms), and single apache process has ~35-40MB RES It is on VPS, with 1GB/2GB soft/hard RAM limits, only apache mysql running. Mysqld needs ~100-200MB, and caching is covered by apc. I reduced maxclients down to 40, it should never run out of memory. BTW, how's that someone has apache process 10-20MB, and me 40MB? I'd like to reduce its size, but do not know how... Jarry -- ___ This mailbox accepts e-mails only from selected mailing-lists! Everything else is considered to be spam and therefore deleted.
Re: [gentoo-user] UPS and serial or USB connections
On Fri, Sep 14, 2012 at 10:24 PM, Dale rdalek1...@gmail.com wrote: Howdy, Newegg just had a sale on a really nice UPS. I got one. Anyway, it has both serial and USB connections. I have a question about these. I could use either one but not sure if it matters. Does the USB connection offer any additional features over the serial connection? I could use USB but would rather use serial since nothing else I have is serial but I have a bit of USB devices. Also, I never disconnect the serial cable from either the system or the UPS when either is in use. Sort of defeats the purpose I guess. Since it also has screws to make sure the serial cable doesn't come undone, the serial has one advantage. I'm not sure what would happen if it looses the connection all of a sudden. Does it do like NORAD and assume power is out? lol So, since I already have everything set up for serial connections, should I just keep using it or does the USB have more goodies? I would be surprised if there is any difference. Usually the UPS just spits out a heartbeat of the same information every X seconds. I have a newer-model Cyberpower UPS and it works fine with NUT, so you're probably okay there. If you already have serial port set up and working then you've already got the hard part taken care of.
Re: [gentoo-user] Apache forked itself to death...
On Mon, Sep 17, 2012 at 10:52 AM, Jarry mr.ja...@gmail.com wrote: On 16-Sep-12 20:06, Michael Hampicke wrote: * Each Apache process is consuming 80-100MB of RAM. * Squid is consuming 666MB of RAM * memcached is consuming 822MB of RAM * mysqld is consuming 886MB of RAM * The kernel is using 110MB of RAM for buffers * The kernel is using 851MB of RAM for file cache (which benefits squid). As Jerry did not specify which content his apache is serving, I used 12MB of RAM per apache process (as a general rule of thumb). But if it's dynamic content generated by a scripting language like php it could be a lot more. But I think 80-100MB of RAM with php in the back should be a good guess. Important thing is: MaxClients x memory footprint per apache process available memory :-) If you have lots of concurrent requests you may be better suited with something lighter like lighttpd. Or start caching of some sort, like Michael does. Thank you for all tipstweaks. My apache is serving mostly dynamic content (drupal cms), and single apache process has ~35-40MB RES It is on VPS, with 1GB/2GB soft/hard RAM limits, only apache mysql running. Mysqld needs ~100-200MB, and caching is covered by apc. I reduced maxclients down to 40, it should never run out of memory. APC is for PHP opcode caching. Memcached is like a database cache (depends on how clients choose to use it). squid is finished-object caching. Each cache reduces resource requirements for a different piece of the overall application. APC allows mod_php to avoid some reparsing and recompilation. Memcached allows an application to say I can regenerate this data if I _must_, but it's kinda expensive, and I'd rather not. Squid captures HTTP requests, looks to see if it has a copy of the object being requested. If it does, it looks to see if the object has expired. If it has, it passes the request on to the backend httpd. If it hasn't, it returns the object it already has. (There are at least three mechanisms that protect clients from stale copies of dynamically-generated data, and I would be very, very surprised if drupal didn't leverage all of them, so it should be safe and beneficial for you to add a squid proxy.) TL;DR, caching is _never_ fully handled by one component. Now go back and read what I wrote, if you didn't. :) BTW, how's that someone has apache process 10-20MB, and me 40MB? I'd like to reduce its size, but do not know how... APC is going to be part of it. You might also look up some other ways of performance-tuning mod_php. Really, though, I'd recommend sticking an HTTP proxy in front of apache first, so you can reduce the number of processes you need. The setup I described is what runs rosettacode.org, which gets a fair amount of traffic (averaging 50k-60k pageviews per week, 500 pageviews per hour with spikes up to 1100, and a virgin pageview will (IIRC) involve up to around 12 objects requested from the server.). This setup is stable enough that it only requires enough attention from me for security updates and an occasional log issue. (There's a file not being handled by logrotate that I haven't had time to fix.) -- :wq
[gentoo-user] [ot]flashing netbook bios
Hi group, I want to upgrade an old 900A netbook, but I have to flash the bios first. This has proven difficult despite using all the tips I found on the web. The recommendations call for a small partition on a usb key formatted fat 16. You copy over the bios file, making sure its called 900A.ROM. You boot and hit alt+f2 as soon as you see the boot screen. Then, supposedly, the bios gets updated with little fuss, and you're good to go. But all that happens in my case is the constant reiteration of reading rom file...file not found, or words to that effect. I would appreciate any insight. Even if you don't know the fix. MW
Re: [gentoo-user] Offline Update
On Sun, Sep 16, 2012 at 12:25 PM, Dale rdalek1...@gmail.com wrote: It's been a while since I did this so, does he need to run emerge --metadata like used to be needed a long time ago? Metadata is included in the tree now, so probably not necessary I would guess.
Re: [gentoo-user] USB automount
Am 16.09.2012 20:45, schrieb Canek Peláez Valdés: This workaround also works in my systemd-only overlay. So, if you have the systemd flag in any of those four packages, disable it and everything should work. Just to be explicit, the versions are: gnome-base/gdm-3.4.1-r1 gnome-base/gnome-session-3.4.2.1 gnome-base/gnome-shell-3.4.2 sys-auth/polkit-0.107:0 confirming this. I have exactly your mentioned versions with USE=-systemd and suspend/hibernate option returns, I could mount/use a DVD right now ... yes! thanks, Stefan
Re: [gentoo-user] Kernel options and udisk
Am Sonntag, 16. September 2012, 20:39:36 schrieb Dale: Howdy, I was doing a update a while back and noticed a ewarn, enotice or something going by. I used the elogviewer to go back and dig it out. This is what it says: Found sources for kernel version: 3.5.0-gentoo Checking for suitable kernel configuration options... ERROR (setup) CONFIG_USB_SUSPEND: is not set when it should be. WARN (setup) Please check to make sure these options are set correctly. Failure to do so may cause unexpected problems. So, I go into the kernel's menuconfig and find this: │ CONFIG_USB_SUSPEND: │ │ │ │ If you say Y here, you can use driver calls or the sysfs │ │ power/control file to enable or disable autosuspend for │ │ individual USB peripherals (see │ │ Documentation/usb/power-management.txt for more details). │ │ │ │ Also, USB remote wakeup signaling is supported, whereby some │ │ USB devices (like keyboards and network adapters) can wake up │ │ their parent hub. That wakeup cascades up the USB tree, and │ │ could wake the system from states like suspend-to-RAM. │ │ │ │ If you are unsure about this, say N here. │ │ │ │ Symbol: USB_SUSPEND [=n] │ │ Type : boolean │ │ Prompt: USB runtime power management (autosuspend) and wakeup │ │ Defined at drivers/usb/core/Kconfig:41 │ │ Depends on: USB_SUPPORT [=y] USB [=y] PM_RUNTIME [=y] │ │ Location: │ │ - Device Drivers │ │ - USB support (USB_SUPPORT [=y]) │ │ - Support for Host-side USB (USB [=y]) 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? Also it says 'if unsure, say N' not 'experimental' or 'you should say 'N' here'. Upower wants it, so there is no 'unsure'. This is a desktop system not a laptop. Do I need to listen to me not needing it or udisk that says I do? so what? is power managment not a good idea on a desktop` Opinions? yes, turn it on. -- #163933
Re: [gentoo-user] Kernel options and udisk
Volker Armin Hemmann volkerar...@googlemail.com wrote: Am Sonntag, 16. September 2012, 20:39:36 schrieb Dale: Howdy, I was doing a update a while back and noticed a ewarn, enotice or something going by. I used the elogviewer to go back and dig it out. This is what it says: Found sources for kernel version: 3.5.0-gentoo Checking for suitable kernel configuration options... ERROR (setup) CONFIG_USB_SUSPEND: is not set when it should be. WARN (setup) Please check to make sure these options are set correctly. Failure to do so may cause unexpected problems. So, I go into the kernel's menuconfig and find this: │ CONFIG_USB_SUSPEND: │ │ │ │ If you say Y here, you can use driver calls or the sysfs │ │ power/control file to enable or disable autosuspend for │ │ individual USB peripherals (see │ │ Documentation/usb/power-management.txt for more details). │ │ │ │ Also, USB remote wakeup signaling is supported, whereby some │ │ USB devices (like keyboards and network adapters) can wake up │ │ their parent hub. That wakeup cascades up the USB tree, and │ │ could wake the system from states like suspend-to-RAM. │ │ │ │ If you are unsure about this, say N here. │ │ │ │ Symbol: USB_SUSPEND [=n] │ │ Type : boolean │ │ Prompt: USB runtime power management (autosuspend) and wakeup │ │ Defined at drivers/usb/core/Kconfig:41 │ │ Depends on: USB_SUPPORT [=y] USB [=y] PM_RUNTIME [=y] │ │ Location: │ │ - Device Drivers │ │ - USB support (USB_SUPPORT [=y]) │ │ - Support for Host-side USB (USB [=y]) 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? Also it says 'if unsure, say N' not 'experimental' or 'you should say 'N' here'. Upower wants it, so there is no 'unsure'. This is a desktop system not a laptop. Do I need to listen to me not needing it or udisk that says I do? so what? is power managment not a good idea on a desktop` Opinions? yes, turn it on. OK, sorry if this is a dumb question, but I did search for it using make menuconfig, but could not actually find it! I have all my usb host controller drivers as modules, if that makes any difference. I am using 3.4.0-gentoo. -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici cov...@ccs.covici.com
Re: [gentoo-user] new machine : suddenly Python 3 appears
120917 Neil Bothwick wrote: On Sun, 16 Sep 2012 20:24:01 -0400, Philip Webb wrote: We've been warned not to use Python 3 , so it's not installed in this box, but it was included along with Python 2 in the Stage3 for the new machine. I now find that 13 pkgs have been compiled relying on it Portage refuses to unmerge it. Is this safe ? Perfectly safe, because we weren't warned to not use it, only to not set it as the default. That is reasonable because older scripts aren't aware of the differences between Python 2/3, while newer scripts can explicitly call whichever version they need. The only problem with setting Python 3 as the default is that some older scripts may break. I discovered this because my little script to do CLI calculations -- by far the fastest of anything, if you don't need variables -- wouldn't work in the new machine till I did s/python/python2 . In case others might like to use it, the script is : #!/usr/bin/python2 from math import * import sys expression = sys.argv[1] print ' ',eval(expression) Its help is via 'pydoc math'. Expressions need quotes if they have brackets. It was failing with a syntax error in the print line, when the 1st line read #!/usr/bin/python , so I have to assume (1) that Python3 has been set as default -- No ! I didn't do it ! -- (2) its syntax for printing has changed. Thanks for the polite explanation. Further comments welcome. -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [gentoo-user] Kernel options and udisk
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. Also it says 'if unsure, say N' not 'experimental' or 'you should say 'N' here'. Upower wants it, so there is no 'unsure'. Is for me since I only use the power switch to cut mine off/on. I want to win the lottery but I doubt I ever will, especially since I never buy a ticket. lol It may want it but it did compile without me turning it on. So it appears that it was not a deal breaker for the package and rather doubtful I will use it. I just wanted to check now before it does become a deal breaker and I am forced to reboot for this one small thing. This is a desktop system not a laptop. Do I need to listen to me not needing it or udisk that says I do? so what? is power managment not a good idea on a desktop` Again, see above. Opinions? yes, turn it on. I did but I doubt it will be used anytime soon. It has joined the other things that must be there that is of really no, or very little use, to me. Maybe one day that will change. ;-) At least now I know another use for this option. 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
Am Montag, 17. September 2012, 12:34:12 schrieb cov...@ccs.covici.com: Volker Armin Hemmann volkerar...@googlemail.com wrote: Am Sonntag, 16. September 2012, 20:39:36 schrieb Dale: Howdy, I was doing a update a while back and noticed a ewarn, enotice or something going by. I used the elogviewer to go back and dig it out. This is what it says: Found sources for kernel version: 3.5.0-gentoo Checking for suitable kernel configuration options... ERROR (setup) CONFIG_USB_SUSPEND: is not set when it should be. WARN (setup) Please check to make sure these options are set correctly. Failure to do so may cause unexpected problems. So, I go into the kernel's menuconfig and find this: │ CONFIG_USB_SUSPEND: │ │ │ │ If you say Y here, you can use driver calls or the sysfs │ │ power/control file to enable or disable autosuspend for │ │ individual USB peripherals (see │ │ Documentation/usb/power-management.txt for more details). │ │ │ │ Also, USB remote wakeup signaling is supported, whereby some │ │ USB devices (like keyboards and network adapters) can wake up │ │ their parent hub. That wakeup cascades up the USB tree, and │ │ could wake the system from states like suspend-to-RAM. │ │ │ │ If you are unsure about this, say N here. │ │ │ │ Symbol: USB_SUSPEND [=n] │ │ Type : boolean │ │ Prompt: USB runtime power management (autosuspend) and wakeup │ │ Defined at drivers/usb/core/Kconfig:41 │ │ Depends on: USB_SUPPORT [=y] USB [=y] PM_RUNTIME [=y] │ │ Location: │ │ - Device Drivers │ │ - USB support (USB_SUPPORT [=y]) │ │ - Support for Host-side USB (USB [=y]) 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? Also it says 'if unsure, say N' not 'experimental' or 'you should say 'N' here'. Upower wants it, so there is no 'unsure'. This is a desktop system not a laptop. Do I need to listen to me not needing it or udisk that says I do? so what? is power managment not a good idea on a desktop` Opinions? yes, turn it on. OK, sorry if this is a dumb question, but I did search for it using make menuconfig, but could not actually find it! I have all my usb host controller drivers as modules, if that makes any difference. I am using 3.4.0-gentoo. hit / in menuconfig. It is there. -- #163933
Re: [gentoo-user] new machine : suddenly Python 3 appears
On Mon, 17 Sep 2012 13:14:27 -0400, Philip Webb wrote about Re: [gentoo-user] new machine : suddenly Python 3 appears: In case others might like to use it, the script is : #!/usr/bin/python2 from math import * import sys expression = sys.argv[1] print ' ',eval(expression) The above line uses obsolete syntax. A big RTFM is required to get the new syntax, as print is no longer a statement, but a subroutine (or void function in C-speak). Its help is via 'pydoc math'. Expressions need quotes if they have brackets. It was failing with a syntax error in the print line, when the 1st line read #!/usr/bin/python , so I have to assume (1) that Python3 has been set as default -- No ! I didn't do it ! -- (2) its syntax for printing has changed. The latter -- and perhaps the former too, but that is irrelevant from a going-forward point of view. In fact, print changed a few years back, but Python 2,x tolerates the old syntax unless you specify the -3 run-time option. This option was also recommended a few years back, so that syntax that will be flagged by Python 3.x can be detected early (i.e. a few years back). So, try using #!/usr/bin/python2 -3 for your hash-bang line on all your old Python scripts. -- Regards, Dave [RLU #314465] *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* dwn...@ntlworld.com (David W Noon) *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* signature.asc Description: PGP signature
Re: [gentoo-user] Kernel options and udisk
On Mon, Sep 17, 2012 at 2:00 PM, Volker Armin Hemmann volkerar...@googlemail.com wrote: Am Montag, 17. September 2012, 12:34:12 schrieb cov...@ccs.covici.com: Volker Armin Hemmann volkerar...@googlemail.com wrote: Am Sonntag, 16. September 2012, 20:39:36 schrieb Dale: Howdy, I was doing a update a while back and noticed a ewarn, enotice or something going by. I used the elogviewer to go back and dig it out. This is what it says: Found sources for kernel version: 3.5.0-gentoo Checking for suitable kernel configuration options... ERROR (setup) CONFIG_USB_SUSPEND: is not set when it should be. WARN (setup) Please check to make sure these options are set correctly. Failure to do so may cause unexpected problems. So, I go into the kernel's menuconfig and find this: │ CONFIG_USB_SUSPEND: │ │ │ │ If you say Y here, you can use driver calls or the sysfs │ │ power/control file to enable or disable autosuspend for │ │ individual USB peripherals (see │ │ Documentation/usb/power-management.txt for more details). │ │ │ │ Also, USB remote wakeup signaling is supported, whereby some │ │ USB devices (like keyboards and network adapters) can wake up │ │ their parent hub. That wakeup cascades up the USB tree, and │ │ could wake the system from states like suspend-to-RAM. │ │ │ │ If you are unsure about this, say N here. │ │ │ │ Symbol: USB_SUSPEND [=n] │ │ Type : boolean │ │ Prompt: USB runtime power management (autosuspend) and wakeup │ │ Defined at drivers/usb/core/Kconfig:41 │ │ Depends on: USB_SUPPORT [=y] USB [=y] PM_RUNTIME [=y] │ │ Location: │ │ - Device Drivers │ │ - USB support (USB_SUPPORT [=y]) │ │ - Support for Host-side USB (USB [=y]) 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? Also it says 'if unsure, say N' not 'experimental' or 'you should say 'N' here'. Upower wants it, so there is no 'unsure'. This is a desktop system not a laptop. Do I need to listen to me not needing it or udisk that says I do? so what? is power managment not a good idea on a desktop` Opinions? yes, turn it on. OK, sorry if this is a dumb question, but I did search for it using make menuconfig, but could not actually find it! I have all my usb host controller drivers as modules, if that makes any difference. I am using 3.4.0-gentoo. hit / in menuconfig. It is there. Although I do believe you need to remove the CONFIG_ prefix before you search. -- :wq
Re: [gentoo-user] Kernel options and udisk
Michael Mol wrote: On Mon, Sep 17, 2012 at 2:00 PM, Volker Armin Hemmann volkerar...@googlemail.com wrote: Am Montag, 17. September 2012, 12:34:12 schrieb cov...@ccs.covici.com: OK, sorry if this is a dumb question, but I did search for it using make menuconfig, but could not actually find it! I have all my usb host controller drivers as modules, if that makes any difference. I am using 3.4.0-gentoo. hit / in menuconfig. It is there. Although I do believe you need to remove the CONFIG_ prefix before you search. Also, there are also other options that must be turned on for it to show up. I had to enable other things before I could find it in the menu. This is another reason I asked the question on whether it is really needed or not. It wasn't just one thing I had to enable but a couple other things too. I'm still not sure I need either of those but . . . Dale :-) :-) -- I am only responsible for what I said ... Not for what you understood or how you interpreted my words!
Re: [gentoo-user] Offline Update
Paul Hartman wrote: On Sun, Sep 16, 2012 at 12:25 PM, Dale rdalek1...@gmail.com wrote: It's been a while since I did this so, does he need to run emerge --metadata like used to be needed a long time ago? Metadata is included in the tree now, so probably not necessary I would guess. I thought it was changed but wasn't sure. I remember seeing all those files going by when I sync. I just wasn't sure if that was the same thing as it used to be. Thanks for the info. Now to remember that in the future. :/ 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
Dale wrote: Howdy, I was doing a update a while back and noticed a ewarn, enotice or something going by. I used the elogviewer to go back and dig it out. This is what it says: Found sources for kernel version: 3.5.0-gentoo Checking for suitable kernel configuration options... ERROR (setup) CONFIG_USB_SUSPEND: is not set when it should be. WARN (setup) udisks will work without that, but if you try to safely unplug a USB stick or other USB storage device, an error will occur because udisks is unable to power off the device before unplugging. The option is not required for its essential functionality, but it's definitely useful and does not add any big overhead to the kernel, so I always enable it and would recommend enabling it unless you have a strong reason not to set it. Please check to make sure these options are set correctly. Failure to do so may cause unexpected problems. So, I go into the kernel's menuconfig and find this: │ CONFIG_USB_SUSPEND: │ │ │ │ If you say Y here, you can use driver calls or the sysfs │ │ power/control file to enable or disable autosuspend for │ │ individual USB peripherals (see │ │ Documentation/usb/power-management.txt for more details). │ │ │ │ Also, USB remote wakeup signaling is supported, whereby some │ │ USB devices (like keyboards and network adapters) can wake up │ │ their parent hub. That wakeup cascades up the USB tree, and │ │ could wake the system from states like suspend-to-RAM. │ │ │ │ If you are unsure about this, say N here. │ This message is on a lot of important stuff, it just means you will be able to use USB (at least on *some* machines) without enabling it. As soon as you have any reason to set it or know what it does, this recommendation is superfluous. Only take care if the help message says something like: * This is usually not needed, so if unsure, say no * This is highly experimental, ... * only set this as module ... * Do not enable unless ... In such cases, you should be sure what you are doing and usually no ebuild would require options like that. │ │ │ Symbol: USB_SUSPEND [=n] │ │ Type : boolean │ │ Prompt: USB runtime power management (autosuspend) and wakeup │ │ Defined at drivers/usb/core/Kconfig:41 │ │ Depends on: USB_SUPPORT [=y] USB [=y] PM_RUNTIME [=y] │ │ Location: │ │ - Device Drivers │ │ - USB support (USB_SUPPORT [=y]) │ │ - Support for Host-side USB (USB [=y]) 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. This is a desktop system not a laptop. Do I need to listen to me not needing it or udisk that says I do? This option is only USB relevant and can be used on any laptop / desktop system / whatever with USB support. Opinions? Dale :-) :-) P. S. The only things I have USB right now is my printer and a camera. I may have a UPS added to that when I get around to rebooting again. I'm not sure on how I will end up connecting it yet. In case you have no USB sticks and never want to use any USB storage device, you won't need udisks at all, try disabling the udisks USE flags on your desktop packages (esp. gvfs). Regards, Felix
Re: [gentoo-user] Kernel options and udisk
On Mon, Sep 17, 2012 at 2:26 PM, Dale rdalek1...@gmail.com wrote: Michael Mol wrote: On Mon, Sep 17, 2012 at 2:00 PM, Volker Armin Hemmann volkerar...@googlemail.com wrote: Am Montag, 17. September 2012, 12:34:12 schrieb cov...@ccs.covici.com: OK, sorry if this is a dumb question, but I did search for it using make menuconfig, but could not actually find it! I have all my usb host controller drivers as modules, if that makes any difference. I am using 3.4.0-gentoo. hit / in menuconfig. It is there. Although I do believe you need to remove the CONFIG_ prefix before you search. Also, there are also other options that must be turned on for it to show up. I had to enable other things before I could find it in the menu. This is another reason I asked the question on whether it is really needed or not. It wasn't just one thing I had to enable but a couple other things too. I'm still not sure I need either of those but . . . You do, for the same reason you need electricity; you may not use electricity directly, but something you use does. Similarly, you may not need this config option, but something you use does (or something you use uses something you use which does). Further, the config option won't be available unless all of the things _it_ uses are enabled. So, if this config option X isn't available because it needs config option Y, you need config option Y, because you need config option X, because you need udisks, because you need something which needs udisks. So if some option X says don't enable this unless you need it, and you need some option Z, which says it needs option X, then, yes, you need option X, because you need option Z. This is what Volker meant when he said that there was no 'unsure' at play. Since you're sure you want udisk (because you installed it), then, logically following, you're sure you want whatever udisk depends on. (Either that, or you're not being logical. ^^ ) -- :wq
Re: [gentoo-user] new machine : suddenly Python 3 appears
120917 David W Noon wrote: On Mon, 17 Sep 2012 13:14:27 -0400, Philip Webb wrote re Python 2/3 : print ' ',eval(expression) The above line uses obsolete syntax. Try using #!/usr/bin/python2 -3 for your hash-bang line on all your old Python scripts. Well, thanks for the info -- which is what I suspected -- , but just what is the correct Python3 syntax for that simple print line ? This is my only Python script, which I got from somewhere long forgotten, I generally don't have a need to do Python programming. While this subject is open, can anyone tell me how to get Python3 started from CLI automatically to load the math item ? -- ie to do 'from math import *' without my having to type it ? That would make it possible to use 'python' instead of my script, which would then allow me to use variables, sometimes an advantage. -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [gentoo-user] UPS and serial or USB connections
Paul Hartman wrote: On Fri, Sep 14, 2012 at 10:24 PM, Dale rdalek1...@gmail.com wrote: Howdy, Newegg just had a sale on a really nice UPS. I got one. Anyway, it has both serial and USB connections. I have a question about these. I could use either one but not sure if it matters. Does the USB connection offer any additional features over the serial connection? I could use USB but would rather use serial since nothing else I have is serial but I have a bit of USB devices. Also, I never disconnect the serial cable from either the system or the UPS when either is in use. Sort of defeats the purpose I guess. Since it also has screws to make sure the serial cable doesn't come undone, the serial has one advantage. I'm not sure what would happen if it looses the connection all of a sudden. Does it do like NORAD and assume power is out? lol So, since I already have everything set up for serial connections, should I just keep using it or does the USB have more goodies? I would be surprised if there is any difference. Usually the UPS just spits out a heartbeat of the same information every X seconds. I have a newer-model Cyberpower UPS and it works fine with NUT, so you're probably okay there. If you already have serial port set up and working then you've already got the hard part taken care of. I think I am going to try USB first, see what it does and what info it gives. Then go back to serial and compare. If it does as you and me think it will, I'm going to stick with serial. If for no other reason than it frees up a USB port plus it is very hard to accidentally unplug my serial cable since it has the screws to hold it in. 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 :-) :-) -- 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
Michael Mol wrote: On Mon, Sep 17, 2012 at 2:26 PM, Dale rdalek1...@gmail.com wrote: Michael Mol wrote: On Mon, Sep 17, 2012 at 2:00 PM, Volker Armin Hemmann volkerar...@googlemail.com wrote: Am Montag, 17. September 2012, 12:34:12 schrieb cov...@ccs.covici.com: OK, sorry if this is a dumb question, but I did search for it using make menuconfig, but could not actually find it! I have all my usb host controller drivers as modules, if that makes any difference. I am using 3.4.0-gentoo. hit / in menuconfig. It is there. Although I do believe you need to remove the CONFIG_ prefix before you search. Also, there are also other options that must be turned on for it to show up. I had to enable other things before I could find it in the menu. This is another reason I asked the question on whether it is really needed or not. It wasn't just one thing I had to enable but a couple other things too. I'm still not sure I need either of those but . . . You do, for the same reason you need electricity; you may not use electricity directly, but something you use does. Similarly, you may not need this config option, but something you use does (or something you use uses something you use which does). Further, the config option won't be available unless all of the things _it_ uses are enabled. So, if this config option X isn't available because it needs config option Y, you need config option Y, because you need config option X, because you need udisks, because you need something which needs udisks. So if some option X says don't enable this unless you need it, and you need some option Z, which says it needs option X, then, yes, you need option X, because you need option Z. This is what Volker meant when he said that there was no 'unsure' at play. Since you're sure you want udisk (because you installed it), then, logically following, you're sure you want whatever udisk depends on. (Either that, or you're not being logical. ^^ ) But, I was still unsure. If it wants me to enable the option for battery monitoring, do I do that too? I don't have any batteries but it wants the option enabled so to use your logic, I must need it because it asks for it even tho I don't use it and can't use it. As I posted earlier, I have no plan to use this so how can my system use it when I have nothing here to use it? One example in another reply was to use the keyboard as a power switch. I have a old style keyboard that doesn't have all those extra keys. I'm not sure I could use my keyboard to turn on my system given it is the old style. So, if that is one example of what that is used for, then that is likely to never happen. My system isn't capable of using it regardless of the fact it wants the option. Enabling the option in the kernel does not give me a new keyboard. ^_^ Logic works most of the time but not all the time. I don't feel that I need any of these options. Since the package completed its compile without it, I apparently have the option to leave it out. Thing is, I didn't know what it is for and whether I should enable it so I was unsure about the option. I did enable it but only because it isn't going to be something that borks my system, unlike trying to monitor batteries that don't exist. LOL 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
Felix Kuperjans wrote: Dale wrote: Howdy, I was doing a update a while back and noticed a ewarn, enotice or something going by. I used the elogviewer to go back and dig it out. This is what it says: Found sources for kernel version: 3.5.0-gentoo Checking for suitable kernel configuration options... ERROR (setup) CONFIG_USB_SUSPEND: is not set when it should be. WARN (setup) udisks will work without that, but if you try to safely unplug a USB stick or other USB storage device, an error will occur because udisks is unable to power off the device before unplugging. The option is not required for its essential functionality, but it's definitely useful and does not add any big overhead to the kernel, so I always enable it and would recommend enabling it unless you have a strong reason not to set it. Ahhh, this was helpful info. I do use sticks but right now that is the only storage thing I use on my system. Everything else is printer, camera etc etc. So, this will 'improve' how a USB stick works too. Neat. Please check to make sure these options are set correctly. Failure to do so may cause unexpected problems. So, I go into the kernel's menuconfig and find this: │ CONFIG_USB_SUSPEND: │ │ │ │ If you say Y here, you can use driver calls or the sysfs │ │ power/control file to enable or disable autosuspend for │ │ individual USB peripherals (see │ │ Documentation/usb/power-management.txt for more details). │ │ │ │ Also, USB remote wakeup signaling is supported, whereby some │ │ USB devices (like keyboards and network adapters) can wake up │ │ their parent hub. That wakeup cascades up the USB tree, and │ │ could wake the system from states like suspend-to-RAM. │ │ │ │ If you are unsure about this, say N here. │ This message is on a lot of important stuff, it just means you will be able to use USB (at least on *some* machines) without enabling it. As soon as you have any reason to set it or know what it does, this recommendation is superfluous. Only take care if the help message says something like: * This is usually not needed, so if unsure, say no * This is highly experimental, ... * only set this as module ... * Do not enable unless ... In such cases, you should be sure what you are doing and usually no ebuild would require options like that. Yea, I just didn't know what it was for so I went with the unsure part. Generally, if I am unsure, I leave it out. Thing is, I had a package that hinted it would like to have it. Hence the question about what this was and such. I wanted to take the 'un' out of unsure. lol │ │ │ Symbol: USB_SUSPEND [=n] │ │ Type : boolean │ │ Prompt: USB runtime power management (autosuspend) and wakeup │ │ Defined at drivers/usb/core/Kconfig:41 │ │ Depends on: USB_SUPPORT [=y] USB [=y] PM_RUNTIME [=y] │ │ Location: │ │ - Device Drivers │ │ - USB support (USB_SUPPORT [=y]) │ │ - Support for Host-side USB (USB [=y]) 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. This is a desktop system not a laptop. Do I need to listen to me not needing it or udisk that says I do? This option is only USB relevant and can be used on any laptop / desktop system / whatever with USB support. I got that now. The info above helped on that one. Opinions? Dale :-) :-) P. S. The only things I have USB right now is my printer and a camera. I may have a UPS added to that when I get around to rebooting again. I'm not sure on how I will end up connecting it yet. In case you have no USB sticks and never want to use any USB storage device, you won't need udisks at all, try disabling the udisks USE flags on your desktop packages (esp. gvfs). Regards, Felix I do plan to get a external USB drive one of these days. So, it is enabled and I'm now 'sure' about it. ;-) You applied power to my light bulb. 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
On Mon, Sep 17, 2012 at 3:08 PM, Dale rdalek1...@gmail.com wrote: Michael Mol wrote: On Mon, Sep 17, 2012 at 2:26 PM, Dale rdalek1...@gmail.com wrote: Michael Mol wrote: On Mon, Sep 17, 2012 at 2:00 PM, Volker Armin Hemmann volkerar...@googlemail.com wrote: Am Montag, 17. September 2012, 12:34:12 schrieb cov...@ccs.covici.com: OK, sorry if this is a dumb question, but I did search for it using make menuconfig, but could not actually find it! I have all my usb host controller drivers as modules, if that makes any difference. I am using 3.4.0-gentoo. hit / in menuconfig. It is there. Although I do believe you need to remove the CONFIG_ prefix before you search. Also, there are also other options that must be turned on for it to show up. I had to enable other things before I could find it in the menu. This is another reason I asked the question on whether it is really needed or not. It wasn't just one thing I had to enable but a couple other things too. I'm still not sure I need either of those but . . . You do, for the same reason you need electricity; you may not use electricity directly, but something you use does. Similarly, you may not need this config option, but something you use does (or something you use uses something you use which does). Further, the config option won't be available unless all of the things _it_ uses are enabled. So, if this config option X isn't available because it needs config option Y, you need config option Y, because you need config option X, because you need udisks, because you need something which needs udisks. So if some option X says don't enable this unless you need it, and you need some option Z, which says it needs option X, then, yes, you need option X, because you need option Z. This is what Volker meant when he said that there was no 'unsure' at play. Since you're sure you want udisk (because you installed it), then, logically following, you're sure you want whatever udisk depends on. (Either that, or you're not being logical. ^^ ) But, I was still unsure. If it wants me to enable the option for battery monitoring, do I do that too? I don't have any batteries but it wants the option enabled so to use your logic, I must need it because it asks for it even tho I don't use it and can't use it. When it comes to software, even if you don't actively use a thing, you may depend on it being there. The reasons involved could come from any of dozens of programming issues you may be unaware of or uncaring of; it could come from the need of a programmer to simplify his reasoning about a system in order to simplify his code (or the problem his code is trying to solve). It could come from some automatic linking process that looks for a symbol even if the function that symbol represents is never called in practice. It could come from some indirect artifact of the thing being there. You're trying to apply a holistic reasoning basis to a deterministic dependency problem. That kind of logic is the same kind of logic that leads to stories such as but why won't you plug in your computer? because it makes a lot of noise. Why won't my computer work? Because it needs power, so you need to plug it in. But it makes a lot of noise. Apologies for the crass analogy, but it really is the same thing, just at a different technical depth. -- :wq
Re: [gentoo-user] new machine : suddenly Python 3 appears
Am Mon, 17 Sep 2012 14:45:41 -0400 schrieb Philip Webb purs...@ca.inter.net: 120917 David W Noon wrote: On Mon, 17 Sep 2012 13:14:27 -0400, Philip Webb wrote re Python 2/3 : print ' ',eval(expression) The above line uses obsolete syntax. Try using #!/usr/bin/python2 -3 for your hash-bang line on all your old Python scripts. Well, thanks for the info -- which is what I suspected -- , but just what is the correct Python3 syntax for that simple print line ? This is my only Python script, which I got from somewhere long forgotten, I generally don't have a need to do Python programming. print ' ',eval(expression) becomes print(' ',eval(expression)) While this subject is open, can anyone tell me how to get Python3 started from CLI automatically to load the math item ? -- ie to do 'from math import *' without my having to type it ? That would make it possible to use 'python' instead of my script, which would then allow me to use variables, sometimes an advantage. Sorry, I don't know, and skimming through the python man page didn't turn up anything except -m module, which executes a python module as a script. Perhaps someone else knows a possibility. Apart from that, I don't really understand what you want to do from there. Could you maybe explain in more detail? 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] Kernel options and udisk
On Monday 17 September 2012 16:57:49 Volker Armin Hemmann wrote: so what? is power managment not a good idea on a desktop Not on this one, no. It spends its life running BOINC applications. You know, contributing something back for all the help I've gained. -- Rgds Peter
Re: [gentoo-user] new machine : suddenly Python 3 appears
On Mon, 17 Sep 2012 14:45:41 -0400, Philip Webb wrote about Re: [gentoo-user] new machine : suddenly Python 3 appears: 120917 David W Noon wrote: On Mon, 17 Sep 2012 13:14:27 -0400, Philip Webb wrote re Python 2/3 : print ' ',eval(expression) The above line uses obsolete syntax. Try using Some interesting quoting there. Those 2 sentences were quite a few paragraphs apart when I typed them and now they're on a single line. #!/usr/bin/python2 -3 for your hash-bang line on all your old Python scripts. Well, thanks for the info -- which is what I suspected -- , but just what is the correct Python3 syntax for that simple print line ? print(' {0}'.format(eval(expression))) Pretty, isn't it? ... :-) Just be aware that the above is only for your original print statement. There are a myriad of new formatting options that address various other configurations of the old print statement and the above does not cover anything like all of them. That's why I wrote that a big RTFM is required to learn the new syntax. This is my only Python script, which I got from somewhere long forgotten, I generally don't have a need to do Python programming. In the Gentoo world, programming in Python is always helpful. While this subject is open, can anyone tell me how to get Python3 started from CLI automatically to load the math item ? -- ie to do 'from math import *' without my having to type it ? You can't. It is program code and you have to code it yourself. That would make it possible to use 'python' instead of my script, which would then allow me to use variables, sometimes an advantage. I would simply write a more flexible script, one that does exactly what I need it to do. If your Python variable named expression contains an arithmetic expression, you might be able to get the shell to evaluate it for you, thus eliminating the need for Python; just be aware that shells do not normally do logarithms, trigonometry or other transcendental functions. -- Regards, Dave [RLU #314465] *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* dwn...@ntlworld.com (David W Noon) *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* signature.asc Description: PGP signature
Re: [gentoo-user] new machine : suddenly Python 3 appears
120917 David W Noon wrote: On Mon, 17 Sep 2012 14:45:41 -0400, Philip Webb asked about print ' ',eval(expression) whose syntax is obsolete in Python3. print(' {0}'.format(eval(expression))) be aware that the above is only for your original print statement. There are a myriad of new formatting options that address various other configurations of the old print statement and the above does not cover anything like all of them. Thanks : someone else suggested a different format below. It doesn't matter today, but perhaps Python2 will disappear sometime. how to get Python3 started from CLI automatically to load the math item ? -- ie to do 'from math import *' without my having to type it ? You can't. It is program code and you have to code it yourself. If your Python variable expression contains an arithmetic expression, you might be able to get the shell to evaluate it for you, but shells do not normally do logs, trig or other transcendental functions. Yes, that's why I use my script, which does all the everyday jobs. 120917 Marc Joliet wrote: print ' ',eval(expression) becomes print(' ',eval(expression)) Thanks for that version too (smile). The one limitation of the script is that it doesn't allow variables ; you can easily recall previous lines via Bash mouseover+drop bits, but AFAIK there's no way to assign values to variables. With Python running as interpreter, I would get much more capability, but I would need to enter the special line to load the math functions : is it possible to do it with some capitalised variable in .bashrc , which might list parameters telling Python3 what to load when it starts ? one of the 'man' files seems to refer to something like that, but briefly. -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
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. 120917 Marc Joliet wrote: print(' ',eval(expression)) That does the calculation, but the output is wrongly formatted : 514 bin pycalc1 2+3 (' ', 5) Thanks again -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [gentoo-user] Kernel options and udisk
On Mon, Sep 17, 2012 at 3:26 PM, Peter Humphrey pe...@humphrey.ukfsn.org wrote: On Monday 17 September 2012 16:57:49 Volker Armin Hemmann wrote: so what? is power managment not a good idea on a desktop Not on this one, no. It spends its life running BOINC applications. You know, contributing something back for all the help I've gained. I believe that's the beauty of options like CONFIG_USB_SUSPEND. If you leave the machine running crunching numbers (of whatever), with USB_SUSPEND the devices not used (say, the backup disk you transfer to the results of your crunching every weekend) can be suspended, saving a little bit of power. You don't leave the monitor turned on and disable the power off features of it, right? Really, I think many others have contributed enough reasons to make it obvious that there is no reason to not turn on this kind of options in the kernel. 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] Kernel options and udisk
Michael Mol wrote: On Mon, Sep 17, 2012 at 3:08 PM, Dale rdalek1...@gmail.com wrote: Michael Mol wrote: On Mon, Sep 17, 2012 at 2:26 PM, Dale rdalek1...@gmail.com wrote: Michael Mol wrote: On Mon, Sep 17, 2012 at 2:00 PM, Volker Armin Hemmann volkerar...@googlemail.com wrote: Am Montag, 17. September 2012, 12:34:12 schrieb cov...@ccs.covici.com: OK, sorry if this is a dumb question, but I did search for it using make menuconfig, but could not actually find it! I have all my usb host controller drivers as modules, if that makes any difference. I am using 3.4.0-gentoo. hit / in menuconfig. It is there. Although I do believe you need to remove the CONFIG_ prefix before you search. Also, there are also other options that must be turned on for it to show up. I had to enable other things before I could find it in the menu. This is another reason I asked the question on whether it is really needed or not. It wasn't just one thing I had to enable but a couple other things too. I'm still not sure I need either of those but . . . You do, for the same reason you need electricity; you may not use electricity directly, but something you use does. Similarly, you may not need this config option, but something you use does (or something you use uses something you use which does). Further, the config option won't be available unless all of the things _it_ uses are enabled. So, if this config option X isn't available because it needs config option Y, you need config option Y, because you need config option X, because you need udisks, because you need something which needs udisks. So if some option X says don't enable this unless you need it, and you need some option Z, which says it needs option X, then, yes, you need option X, because you need option Z. This is what Volker meant when he said that there was no 'unsure' at play. Since you're sure you want udisk (because you installed it), then, logically following, you're sure you want whatever udisk depends on. (Either that, or you're not being logical. ^^ ) But, I was still unsure. If it wants me to enable the option for battery monitoring, do I do that too? I don't have any batteries but it wants the option enabled so to use your logic, I must need it because it asks for it even tho I don't use it and can't use it. When it comes to software, even if you don't actively use a thing, you may depend on it being there. The reasons involved could come from any of dozens of programming issues you may be unaware of or uncaring of; it could come from the need of a programmer to simplify his reasoning about a system in order to simplify his code (or the problem his code is trying to solve). It could come from some automatic linking process that looks for a symbol even if the function that symbol represents is never called in practice. It could come from some indirect artifact of the thing being there. You're trying to apply a holistic reasoning basis to a deterministic dependency problem. That kind of logic is the same kind of logic that leads to stories such as but why won't you plug in your computer? because it makes a lot of noise. Why won't my computer work? Because it needs power, so you need to plug it in. But it makes a lot of noise. Apologies for the crass analogy, but it really is the same thing, just at a different technical depth. But as I said, the package did compile without it. Since it did compile without it, it was not a hard, must have, requirement. If the package would have failed to compile, then I would either have to get rid of the package or enable the option. The message said it should have the option just like one should give the computer power. Thing is, my system was working just fine without the option before. Heck, I still may not really need the option. The software would just like to have it. I may even be able to get rid of the software which would be the next thing if I didn't choose to enable the kernel option. I'm pretty sure it is KDE that is pulling all this extra stuff in. Now that I know more about the option, I added it. Maybe when I reboot it will be happy. ;-) 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
Canek Peláez Valdés wrote: You don't leave the monitor turned on and disable the power off features of it, right? raises hand I leave mine on unless I turn off my puter too. Actually, I just tested the power save thingy and for some reason, mine doesn't cut the monitor off. So, mine runs all the time and looks like it will be that way for a while, unless I can figure out why it doesn't want to take a nap. 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
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. 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). -- Regards, Dave [RLU #314465] *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* dwn...@ntlworld.com (David W Noon) *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* signature.asc Description: PGP signature
Re: [gentoo-user] Kernel options and udisk
On Monday 17 September 2012 22:22:50 Canek Peláez Valdés wrote: I believe that's the beauty of options like CONFIG_USB_SUSPEND. If you leave the machine running crunching numbers (of whatever), with USB_SUSPEND the devices not used (say, the backup disk you transfer to the results of your crunching every weekend) can be suspended, saving a little bit of power. No, I don't need that, having no superfluous devices connected. My weekly backup is of the entire system to an external USB disk. Not from the running system; I reboot to a mini system (which I call a rescue system) each Sunday morning and backup the entire system to USB disk. So far I haven't needed to recover more than a small section of the backup. You don't leave the monitor turned on and disable the power off features of it, right? 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. -- Rgds Peter
Re: [gentoo-user] Kernel options and udisk
On Mon, Sep 17, 2012 at 8:25 PM, Peter Humphrey pe...@humphrey.ukfsn.org wrote: On Monday 17 September 2012 22:22:50 Canek Peláez Valdés wrote: I believe that's the beauty of options like CONFIG_USB_SUSPEND. If you leave the machine running crunching numbers (of whatever), with USB_SUSPEND the devices not used (say, the backup disk you transfer to the results of your crunching every weekend) can be suspended, saving a little bit of power. No, I don't need that, having no superfluous devices connected. My weekly backup is of the entire system to an external USB disk. Not from the running system; I reboot to a mini system (which I call a rescue system) each Sunday morning and backup the entire system to USB disk. So far I haven't needed to recover more than a small section of the backup. You don't leave the monitor turned on and disable the power off features of it, right? 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. There's a sysctl for that. I don't remember what it is off the top of my head. -- :wq
Re: [gentoo-user] Kernel options and udisk
On Mon, Sep 17, 2012 at 7:25 PM, Peter Humphrey pe...@humphrey.ukfsn.org wrote: On Monday 17 September 2012 22:22:50 Canek Peláez Valdés wrote: I believe that's the beauty of options like CONFIG_USB_SUSPEND. If you leave the machine running crunching numbers (of whatever), with USB_SUSPEND the devices not used (say, the backup disk you transfer to the results of your crunching every weekend) can be suspended, saving a little bit of power. No, I don't need that, having no superfluous devices connected. My weekly backup is of the entire system to an external USB disk. Not from the running system; I reboot to a mini system (which I call a rescue system) each Sunday morning and backup the entire system to USB disk. So far I haven't needed to recover more than a small section of the backup. You don't leave the monitor turned on and disable the power off features of it, right? 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. Me? I'm lazy; the more my OS takes trivial decisions from me, the more time I have to do interesting stuff and get actual work done. That's why I use Linux/systemd/PulseAudio/bluez/GNOME; the decisions they take are usually the smart ones (from my point of view). But that's just me. Regards. -- Canek Peláez Valdés Posgrado en Ciencia e Ingeniería de la Computación Universidad Nacional Autónoma de México
[gentoo-user] virtualbox - serial port
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
Re: [gentoo-user] virtualbox - serial port
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 -- Sent from my Android phone with K-9 Mail. Please excuse my brevity.