Re: [gentoo-user] Anybody using a yubikey neo as Smartcard as well?
No, but I was interested in getting one. Did you configure it properly? https://www.yubico.com/2012/12/yubikey-neo-composite-device/ https://developers.yubico.com/libykneomgr/ On Sat, Nov 15, 2014 at 5:24 PM, Konstantinos Agouros wrote: > Hi, > > I just got a yubikey neo that I would like to use as a smart card as > well as just for OTP. > However the pscsd complains, that it can not talk to it, although it > tries to. > > The error I get starts with: > > Nov 16 00:23:17 rumba pcscd: > /var/tmp/portage/sys-apps/pcsc-lite-1.8.13-r1/work/pcsc-lite-1.8.13/src/readerfactory.c:1043:RFInitializeReader() > Open Port 0x20 Failed > (usb:1050/0111:libhal:/org/freedesktop/Hal/devices/usb_device_1050_0111_serialnotneeded_if0) > > > I tried compiling with libusb as well as with udev USE flags the error > stays the same. > > Any recommendations? > > Konstantin > -- > Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: elw...@agouros.de > Altersheimerstr. 1, 81545 Muenchen, Germany. Tel +49 89 69370185 > > > "There is no 'dead' in team!" - Sameen Shaw > >
Re: [gentoo-user] difficulties with lvm2+systemd+grub2
On Fri, Nov 14, 2014 at 07:43:18PM +0100, Michael Mair-Keimberger wrote: > Basically my changes in my grub config were already correct, however I > completely forgot, that, since I wrote my own init script, arg's like > "root" and "init" simply weren't used by my script... > If you look at my script, I only check the cmdline for "lvm", so > setting "init" or "root" haven't any effect at all :D Glad you got this part of it sorted! I know how both relieving and frustrating it can be to find such a simple thing as the solution - it took me two weeks to realise I was calling 'mpc' and not 'mpd' in my startup script, explaining why MPD was never running... :-/ > Regarding dracut: Even though I got it to work, it also just bootet > openrc and not systemd. Don't know why and I didn't digged further after > it worked with my own script. You could try inspecting dmesg to try and determine why it isn't loading your chosen init. It could be something as simple as a typo, or if the filesystem (if you have /usr on a separate partition) isn't available at the time it's trying to launch init. > Regarding LVM: > As mentioned systemd can't mount my lvm partitions from fstab. Those lvm > partitions should be mounted by UUID, but it seems like systemd can't > find them, even though there are available afterwards (under > /dev/vg0/...). I've found dracut initrd's can be a little finicky with LVM volumes. With that in mind, here's the kernel cmdline for one of my systems wich uses LUKS->LVM->EXT4 for it's root partition. Note that it has explicit arguments for *all* LV's and not just root. BOOT_IMAGE=/vmlinuz-3.17.1-gentoo-r1 root=/dev/mapper/vg1-root ro rd.luks.uuid=luks-3f93b8aa-cf8b-4312-85d6-d45cffa59780 rd.lvm.lv=vg1/swap rd.lvm.lv=vg1/root resume=/dev/mapper/vg1-swap rootflags=rw,noatime,data=ordered rootfstype=ext4 quiet > If I comment them out in /etc/fstab (they are not important) systemd > boots just fine. I've also set "use_lvmetad = 1" in /etc/lvm/lvm.conf as > mentioned at the systemd wiki. This is a dracut-ism, in that if a static filesystem (as denoted by it's presence in /etc/fstab) is unmountable, it will assume there are problems and will drop to recovery. The idea of recovery is to identify your root partition with a symlink to the device node, after which you *should* be able to continue. ln -s /dev/ /dev/root See [1] for more. That being said, it may continue to drop to recovery - I've found the dracut recovery console to be a little temperamental with things like that... [1]: http://fedoraproject.org/wiki/How_to_debug_Dracut_problems Cheers; -- wraeth GnuPG Key: B2D9F759 signature.asc Description: Digital signature
[gentoo-user] Anybody using a yubikey neo as Smartcard as well?
Hi, I just got a yubikey neo that I would like to use as a smart card as well as just for OTP. However the pscsd complains, that it can not talk to it, although it tries to. The error I get starts with: Nov 16 00:23:17 rumba pcscd: /var/tmp/portage/sys-apps/pcsc-lite-1.8.13-r1/work/pcsc-lite-1.8.13/src/readerfactory.c:1043:RFInitializeReader() Open Port 0x20 Failed (usb:1050/0111:libhal:/org/freedesktop/Hal/devices/usb_device_1050_0111_serialnotneeded_if0) I tried compiling with libusb as well as with udev USE flags the error stays the same. Any recommendations? Konstantin -- Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: elw...@agouros.de Altersheimerstr. 1, 81545 Muenchen, Germany. Tel +49 89 69370185 "There is no 'dead' in team!" - Sameen Shaw
[gentoo-user] Re: qt5
Michael Vetter uni-konstanz.de> writes: > Recently I started developing on LXQT. As they are using Qt5 on their > developing version I added Qt overlay and unmasked Qt5. >From BGO-525410, the last entry: " Jauhien Piatlicki gentoo-dev 2014-11-08 17:58:49 UTC Moved to the tree. Will stay masked until Qt5 unmasking. In case of any problems, please, create separated bugs blocking this one. " Jauhien knows what he is doing. If he is waiting on the QT5 bug to be resolved, then that is where it is sitting. Surely you should open up a bgo ticket on QTcreator? > best regards, > Michael hth, James
Re: [gentoo-user] syslog-ng-3.6.1 nearly no log anymore
On Sat, 15 Nov 2014 15:08:02 -0500, Walter Dnes wrote: > > Worth a try. If it does fix it I would consider it a bug since adding > > systemd support should not implicitly disable it under openrc. > > I disagree. He's telling the build that it's running under systemd, > but there is no systemd running. That's a problem with them pesky > computers... they do what you tell them to do, not what you want them to > do. The USE flag is there to enable, or otherwise, systemd support. USE flags affect build tie behaviour, not run time behaviour. Building with systemd support should not silently disable openrc support - that should be done with a separate USE flag, if wanted. -- Neil Bothwick TROI : What am I sensing?? I'm sensing INCOMPETENCE, you pretentious bald pseudo-French dickweed! pgpNBps96w09e.pgp Description: OpenPGP digital signature
Re: [gentoo-user] syslog-ng-3.6.1 nearly no log anymore
On Sat, Nov 15, 2014 at 3:08 PM, Walter Dnes wrote: > On Sat, Nov 15, 2014 at 09:34:18AM +, Neil Bothwick wrote >> On Sat, 15 Nov 2014 07:04:03 +0200, Alan McKinnon wrote: >> >> > Since you have it, but don't run it, does USE=-systemd fix the issue? >> >> Worth a try. If it does fix it I would consider it a bug since adding >> systemd support should not implicitly disable it under openrc. > > I disagree. He's telling the build that it's running under systemd, > but there is no systemd running. That's a problem with them pesky > computers... they do what you tell them to do, not what you want them to > do. > USE=systemd simply means to enable support for systemd, not that it is running. Generally stuff like this should be a matter of configuration, not build options. Otherwise your life as a Gentoo user would be a living nightmare when you look at how many profile use flags there are. -- Rich
Re: [gentoo-user] syslog-ng-3.6.1 nearly no log anymore
On Sat, Nov 15, 2014 at 09:34:18AM +, Neil Bothwick wrote > On Sat, 15 Nov 2014 07:04:03 +0200, Alan McKinnon wrote: > > > Since you have it, but don't run it, does USE=-systemd fix the issue? > > Worth a try. If it does fix it I would consider it a bug since adding > systemd support should not implicitly disable it under openrc. I disagree. He's telling the build that it's running under systemd, but there is no systemd running. That's a problem with them pesky computers... they do what you tell them to do, not what you want them to do. -- Walter Dnes I don't run "desktop environments"; I run useful applications
[gentoo-user] Re: apcupsd to recycle power
Thanasis asyr.hopto.org> writes: > > on 11/15/2014 06:47 PM Daniel Frey wrote the following: > > On 11/14/2014 10:53 AM, Thanasis wrote: > >> I have an APC SC620I, which in case of power failure, it successfully > >> initiates a shutdown to the connected (via SMART cable) PC, but if the > >> mains power returns, the UPS does not recycle the power to the PC, and > >> consequently the PC stays off. Are you sure you have "fully characterized the UPS behaviour? Often hardware related to power says one thing in manuals and behave quite differently in relality, particulary as the equipment ages and the firmware inside is not upgraded. A multi meter is an indspinabled piece of diagnosis equipment to actually monitor the outlest both feeding utility power to the UPS and the outlets on the UPS. Furthermore not every port on the UPS acts the same. Start with the manual, but *verify* base on conditions. Another problem. Much of the software (firmware inside the ups) is bullshit. There are not easy/reliable methods to tell exactly how much energy is in a new battery at any given point it time. The problem is further exasperated as batteries and circuit components age. Old UPSes act weird the older the hardware gets. The sensor circuits and the heuristics/bullshit math used to measure currently stored energy in a battery. If you doubt any of this, go to any semiconductor site that has lots of technology for batteries and you'll be astonished at the voodoo that is the basis of those algorithms. So not that you understand that limitation of physcis (currrent EE technology) it's easy to understand why you must verify (characterize) performance. Do change the UPS batteries, if they are older than 3 years (2 years if they are cheap no name brand, not Mil spec) type of crap. All batteries are crap; but there is much more to these systems I am not going into. > > However, in the even that power is restored between the UPS kill and the > > time it actually turns off the mains will still not be cycled. UPdate your ups firmware, often: (from the apc site). http://www.apc.com/search-apc/us/en/relevance/10_1/Product Information;;7B0CB5EA-CEC6-4E31-B9A6-51E4DCFADB54/all?search_text=upgrade firmware&search_type=new&filters= Monitor the actual voltage level on the output port of the ups where your PC is plugged in. Use common sense about electricty. If the ups software is dysfuntional, then find a solution that avoids it. For example, WOL Wake on Lan: https://wiki.archlinux.org/index.php/Wake-on-LAN Once again Arch kicks gentoo in the teeth with excellent documents. ymmv. Research WOL, etherboot and any other way that another system can send a signal over ethernet to you PC to boot up. Sometimes I run that over a serial port embedded device to the pc, as an embedded system can last years or decades on a (solar) battery system, if you auto reboot is really critical. Also look at the patents held by Peter Pulizzi. Pretty much the "shit" when it comes to remote power control: http://patents.justia.com/inventor/peter-s-pulizzi Software is nothing without motivated Electrical Engineeers. (Respect your elders because they have paved a path forward for you). Now, get real. Get my bud, meino to whip together a $20 micro and a relay with a control port into a metal box, (code) so you can build your own reboot box! What he'll charge you? Or keep working with software built ontop of "crap assumptions". After a while you'll "get it". Or buy a UPS with know proven functionality? Naw, just be a "hack" and cludge something "admin_ish" together? Those cheap UPS codes are crap. All of them. If you are motivated, most can be "downloaded" and picked apart, if you are motivated. hth, (PS ignore the rants, they are just there to motivate you) James http://powerquality.eaton.com/About-Us/Pulizzi.asp?id=&key=&Quest_user_id=&leadg_Q_QRequired=&site=&menu=&cx=3&x=14&y=12
Re: [gentoo-user] apcupsd to recycle power
On Saturday 15 Nov 2014 16:54:26 Thanasis wrote: > on 11/15/2014 04:59 PM Mick wrote the following: > > Have you been through them and in particular the "Full Power Down Test"? > > If yes, did you wait long enough after the PC has powered down, for the > > UPS to also switch off (you can affect the overall waiting time by > > setting a shorter TIMEOUT value, rather than waiting for the batteries > > to go flat). > > Yes I have set the TIMEOUT to 30 (seconds) in /etc/apcupsd/apcupsd.conf, > and run the tests. Waited more than 3 minutes after the PC powers off, > the UPS will not kill the power. Hmm ... I'm running out of ideas. :-( > > If this does not get you somewhere, I recommend you post to the > > nut-upsu...@lists.alioth.debian.org (you'll need to register first). > > Is the above list (nut-upsu...@lists.alioth.debian.org) also appropriate > for apcupsd users? I'm sure I saw threads there on APC UPS, so yes it won't hurt if you post there. > > PS. The services I listed running are particular to my UPS, I expect > > different to your APC unit. > > Yes, because they belong to sys-power/nut. I 've been talking about > sys-power/apcupsd, as I said in first post. > (Should I switch to sys-power/nut?) You can try sys-power/nut, and use something like: sudo /opt/local/bin/usbhid-ups -a apcups -DD to get some debug info from your UPS, after you set up the configuration files. You could either try the apcupsd-ups driver which acts as an apcupsd client, or you give usbhid-ups a spin as I show above. In any case, I trust that the guys at the nut M/L will give sound advice for your particular UPS - unless some gentoo user with this UPS chimes in first. HTH. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] apcupsd to recycle power
On 11/15/2014 09:05 AM, Thanasis wrote: >> >> However, in the even that power is restored between the UPS kill and the >> time it actually turns off the mains will still not be cycled. > > Why would this be so? > That was a musing, it wasn't based on testing. On most UPS systems I've seen when the power comes back the UPS resets. As I said, you can time your shutdown and set KILLDELAY, but make sure you add some extra time in case the shutdown takes longer than expected. `man apcupsd.conf` only has a two-sentence description for killdelay usage. Dan
Re: [gentoo-user] apcupsd to recycle power
on 11/15/2014 06:47 PM Daniel Frey wrote the following: On 11/14/2014 10:53 AM, Thanasis wrote: I have an APC SC620I, which in case of power failure, it successfully initiates a shutdown to the connected (via SMART cable) PC, but if the mains power returns, the UPS does not recycle the power to the PC, and consequently the PC stays off. Regardless if the mains power returns soon after the UPS has initiated a shutdown to the PC, shouldn't the UPS recycle the power anyway, so that the PC comes back on as set in BIOS? I assume that your PC shuts off thus reducing the load - and, of course, this increases the runtime of the remaining battery so the UPS never actually shuts down? I don't think you can get apcupsd in any case to cycle the outlet groups, but you can try a couple things. First, is apcupsd even sending the signal to shutdown the UPS? /etc/init.d/apcupsd.powerfail needs to be added to the shutdown runlevel: `rc-update add apcupsd.powerfail shutdown` I have even tried to run the command "/sbin/apcupsd --killpower" from a root terminal (while in default runlevel, after manually creating the file /etc/apcupsd/powerfail) and nothing happened. At the end of the shutdown this is run and it tells the UPS to power off. If you have multiple PCs this should be enabled on the slowest to shutdown to make sure it doesn't kill a machine still shutting down. Am I missing something in the configuration or the daemons that should be running? (Running sys-power/apcupsd-3.14.8-r2) /etc/apcupsd/apcupsd.conf folows: KILLDELAY 0 If the above fails (if the above does indeed fail, some troubleshooting should happen to try to figure out why it doesn't work), KILLDELAY is the parameter you likely seek, but it is dangerous. If you set this it will wait x seconds after a shutdown was requested and forcibly shut down the UPS power. However, in the even that power is restored between the UPS kill and the time it actually turns off the mains will still not be cycled. Why would this be so? But theoretically this window should be pretty small. Dan
Re: [gentoo-user] apcupsd to recycle power
on 11/15/2014 04:59 PM Mick wrote the following: On Saturday 15 Nov 2014 14:22:47 Thanasis wrote: The PC has an option in BIOS to "Power On" when the mains power is restored to it, without any need to press any button. So, once the UPS has initiated a shutdown to the PC, the PC will shutdown, and if the mains power is restored (to the UPS) shortly after the PC has shutdown, how will the UPS make the PC come back on, unless it cuts (kills) the power to PC's cord, and then restores it after a few seconds. See the link Mick posted in his reply: http://www.apcupsd.com/manual/manual.html#arranging-for-reboot-on-power-up On the same page it lists a number of tests you can perform: http://www.apcupsd.com/manual/manual.html#testing-apcupsd Have you been through them and in particular the "Full Power Down Test"? If yes, did you wait long enough after the PC has powered down, for the UPS to also switch off (you can affect the overall waiting time by setting a shorter TIMEOUT value, rather than waiting for the batteries to go flat). Yes I have set the TIMEOUT to 30 (seconds) in /etc/apcupsd/apcupsd.conf, and run the tests. Waited more than 3 minutes after the PC powers off, the UPS will not kill the power. If this does not get you somewhere, I recommend you post to the nut-upsu...@lists.alioth.debian.org (you'll need to register first). Is the above list (nut-upsu...@lists.alioth.debian.org) also appropriate for apcupsd users? The developers and contributors are offering friendly advice and are very knowledgeable on all things UPS related, including annoying bugs with firmware that defeat reason. PS. The services I listed running are particular to my UPS, I expect different to your APC unit. Yes, because they belong to sys-power/nut. I 've been talking about sys-power/apcupsd, as I said in first post. (Should I switch to sys-power/nut?)
Re: [gentoo-user] apcupsd to recycle power
On 11/14/2014 10:53 AM, Thanasis wrote: > I have an APC SC620I, which in case of power failure, it successfully > initiates a shutdown to the connected (via SMART cable) PC, but if the > mains power returns, the UPS does not recycle the power to the PC, and > consequently the PC stays off. > > Regardless if the mains power returns soon after the UPS has initiated a > shutdown to the PC, shouldn't the UPS recycle the power anyway, so that > the PC comes back on as set in BIOS? I assume that your PC shuts off thus reducing the load - and, of course, this increases the runtime of the remaining battery so the UPS never actually shuts down? I don't think you can get apcupsd in any case to cycle the outlet groups, but you can try a couple things. First, is apcupsd even sending the signal to shutdown the UPS? /etc/init.d/apcupsd.powerfail needs to be added to the shutdown runlevel: `rc-update add apcupsd.powerfail shutdown` At the end of the shutdown this is run and it tells the UPS to power off. If you have multiple PCs this should be enabled on the slowest to shutdown to make sure it doesn't kill a machine still shutting down. > > Am I missing something in the configuration or the daemons that should > be running? > > (Running sys-power/apcupsd-3.14.8-r2) > > /etc/apcupsd/apcupsd.conf folows: > KILLDELAY 0 If the above fails (if the above does indeed fail, some troubleshooting should happen to try to figure out why it doesn't work), KILLDELAY is the parameter you likely seek, but it is dangerous. If you set this it will wait x seconds after a shutdown was requested and forcibly shut down the UPS power. However, in the even that power is restored between the UPS kill and the time it actually turns off the mains will still not be cycled. But theoretically this window should be pretty small. Dan
Re: [gentoo-user] apcupsd to recycle power
on 11/15/2014 04:40 PM Rich Freeman wrote the following: On Sat, Nov 15, 2014 at 8:54 AM, Bruce Schultz wrote: If the UPS battery has not run flat before the mains power is restored, I see no reason why a UPS should kill the output power. So the BIOS has no real way of knowing that it should reboot again in that case. Obviously not directly applicable, but I use nut and a cyberpower UPS and the shutdown scheme it employs is that the master (controls the UPS) commands everything else to shut down, then it begins shutdown, and just before powering off it sends a command to the UPS which causes a several second delay followed by a power off, and then it powers off the host (which is otherwise shutdown already). I need to re-read how exactly this is implemented. As I wrote in the initial post I am running apcupsd because my UPS is an APC (... should I switch to sys-power/nut ?)
Re: [gentoo-user] Enlightenment Problem
On 15/11/2014 16:58, john wrote: > I have been using enlightenment 18 for the last 6 months with no > problems. > > I have recently bought a ssd drive and transferred / and boot to there. > Since then whenever I start enlightenment, enlightenment and kswapd uses > all my resources so I cannot even start an xterm, etc. After 10 minutes > all is ok again. top shows kswapd and enlightenment using all cpu. > > This maybe a coincidence with the ssd but have upgraded enlightenemt a > few times since with no change. > > I have tried killing kswapd but nothing happens. It won't die. > > This happens everytime I log out so have switched to xfce4 for the time > being but have no problem there. > > I have rebuilt all enlightenment and associated files (efl, elementary) > and deleted all config files etc. > > If anyone has come across this or can help resolve I would be > greatful. Cannot find much on Google search! > > /boot /dev/sda1 > /root /dev/sda2 > > swap /dev/sdb2 > /home /dev/sdb3 > /var /dev/sdb4 > > fstab entry: > /dev/sdb2 none swap sw 0 0 I have no idea what could cause that problem - I've never seen anyone with that issue (using enlightenment or otherwise) You might have better luck asking on the enlightenment user group: enlightenment-us...@lists.sourceforge.net -- Alan McKinnon alan.mckin...@gmail.com
Re: [gentoo-user] apcupsd to recycle power
On Saturday 15 Nov 2014 14:22:47 Thanasis wrote: > on 11/15/2014 03:54 PM Bruce Schultz wrote the following: > > If the UPS battery has not run flat before the mains power is restored, > > I see no reason why a UPS should kill the output power. > > The PC has an option in BIOS to "Power On" when the mains power is > restored to it, without any need to press any button. > So, once the UPS has initiated a shutdown to the PC, the PC will > shutdown, and if the mains power is restored (to the UPS) shortly after > the PC has shutdown, how will the UPS make the PC come back on, unless > it cuts (kills) the power to PC's cord, and then restores it after a few > seconds. > See the link Mick posted in his reply: > http://www.apcupsd.com/manual/manual.html#arranging-for-reboot-on-power-up On the same page it lists a number of tests you can perform: http://www.apcupsd.com/manual/manual.html#testing-apcupsd Have you been through them and in particular the "Full Power Down Test"? If yes, did you wait long enough after the PC has powered down, for the UPS to also switch off (you can affect the overall waiting time by setting a shorter TIMEOUT value, rather than waiting for the batteries to go flat). If this does not get you somewhere, I recommend you post to the nut-upsu...@lists.alioth.debian.org (you'll need to register first). The developers and contributors are offering friendly advice and are very knowledgeable on all things UPS related, including annoying bugs with firmware that defeat reason. PS. The services I listed running are particular to my UPS, I expect different to your APC unit. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
[gentoo-user] Enlightenment Problem
I have been using enlightenment 18 for the last 6 months with no problems. I have recently bought a ssd drive and transferred / and boot to there. Since then whenever I start enlightenment, enlightenment and kswapd uses all my resources so I cannot even start an xterm, etc. After 10 minutes all is ok again. top shows kswapd and enlightenment using all cpu. This maybe a coincidence with the ssd but have upgraded enlightenemt a few times since with no change. I have tried killing kswapd but nothing happens. It won't die. This happens everytime I log out so have switched to xfce4 for the time being but have no problem there. I have rebuilt all enlightenment and associated files (efl, elementary) and deleted all config files etc. If anyone has come across this or can help resolve I would be greatful. Cannot find much on Google search! /boot /dev/sda1 /root /dev/sda2 swap /dev/sdb2 /home /dev/sdb3 /var /dev/sdb4 fstab entry: /dev/sdb2 none swap sw 0 0 John D Maunder
Re: [gentoo-user] apcupsd to recycle power
On Sat, Nov 15, 2014 at 8:54 AM, Bruce Schultz wrote: > > If the UPS battery has not run flat before the mains power is restored, I > see no reason why a UPS should kill the output power. So the BIOS has no > real way of knowing that it should reboot again in that case. > Obviously not directly applicable, but I use nut and a cyberpower UPS and the shutdown scheme it employs is that the master (controls the UPS) commands everything else to shut down, then it begins shutdown, and just before powering off it sends a command to the UPS which causes a several second delay followed by a power off, and then it powers off the host (which is otherwise shutdown already). I need to re-read how exactly this is implemented. -- Rich
Re: [gentoo-user] apcupsd to recycle power
on 11/15/2014 03:54 PM Bruce Schultz wrote the following: If the UPS battery has not run flat before the mains power is restored, I see no reason why a UPS should kill the output power. The PC has an option in BIOS to "Power On" when the mains power is restored to it, without any need to press any button. So, once the UPS has initiated a shutdown to the PC, the PC will shutdown, and if the mains power is restored (to the UPS) shortly after the PC has shutdown, how will the UPS make the PC come back on, unless it cuts (kills) the power to PC's cord, and then restores it after a few seconds. See the link Mick posted in his reply: http://www.apcupsd.com/manual/manual.html#arranging-for-reboot-on-power-up
Re: [gentoo-user] apcupsd to recycle power
On 15/11/14 22:52, Thanasis wrote: on 11/15/2014 11:35 AM Mick wrote the following: On Friday 14 Nov 2014 18:53:13 Thanasis wrote: I have an APC SC620I, which in case of power failure, it successfully initiates a shutdown to the connected (via SMART cable) PC, but if the mains power returns, the UPS does not recycle the power to the PC, and consequently the PC stays off. Regardless if the mains power returns soon after the UPS has initiated a shutdown to the PC, shouldn't the UPS recycle the power anyway, so that the PC comes back on as set in BIOS? Am I missing something in the configuration or the daemons that should be running? Is it that the UPS does not recycle the power, The UPS does NOT recycle the power. or is it that the PC does not reboot after power is restored? Does the PC reboot if you pull and reinsert its mains plug? The PC's BIOS is correctly configured and tested to start up as soon as power is restored to it. Have a look here if you haven't seen this section already: http://www.apcupsd.com/manual/manual.html#arranging-for-reboot-on-power-up Looks like the UPS does not cut (kill) the power, but I am not sure how to debug it. If the UPS battery has not run flat before the mains power is restored, I see no reason why a UPS should kill the output power. So the BIOS has no real way of knowing that it should reboot again in that case. Have you looked for any BIOS options related to powering on from a USB device? eg, I'm thinking of PCs which can be switched on by pressing a key on the keyboard... could that mechanism be triggered by a UPS? Or perhaps via wake-on-lan? (Note I have no real experience with UPSs, I'm just trying to think of other ways that PCs can be made to power on). Bruce -- :b
Re: [gentoo-user] apcupsd to recycle power
on 11/15/2014 11:35 AM Mick wrote the following: On Friday 14 Nov 2014 18:53:13 Thanasis wrote: I have an APC SC620I, which in case of power failure, it successfully initiates a shutdown to the connected (via SMART cable) PC, but if the mains power returns, the UPS does not recycle the power to the PC, and consequently the PC stays off. Regardless if the mains power returns soon after the UPS has initiated a shutdown to the PC, shouldn't the UPS recycle the power anyway, so that the PC comes back on as set in BIOS? Am I missing something in the configuration or the daemons that should be running? (Running sys-power/apcupsd-3.14.8-r2) /etc/apcupsd/apcupsd.conf folows: UPSNAME SC620I UPSCABLE smart UPSTYPE apcsmart DEVICE /dev/ttyS0 LOCKFILE /var/lock SCRIPTDIR /etc/apcupsd PWRFAILDIR /etc/apcupsd NOLOGINDIR /etc ONBATTERYDELAY 6 BATTERYLEVEL 20 MINUTES 2 TIMEOUT 0 ANNOY 300 ANNOYDELAY 60 NOLOGON disable KILLDELAY 0 NETSERVER on NISIP 192.168.0.1 NISPORT 3551 EVENTSFILE /var/log/apcupsd.events EVENTSFILEMAX 10 UPSCLASS standalone UPSMODE disable STATTIME 600 STATFILE /var/log/apcupsd.status LOGSTATS off DATATIME 0 BATTDATE 10/17/11 SENSITIVITY H WAKEUP 60 SLEEP 180 LOTRANSFER 208 HITRANSFER 253 RETURNCHARGE 45 BEEPSTATE L LOWBATT 5 OUTPUTVOLTS 230 SELFTEST 336 I'm afraid I don't have an APC UPS to know its quirks, but in my case I have these running: upsd upsdrv upslog upsmon the above are not part of apcupsd, are they? Is it that the UPS does not recycle the power, The UPS does NOT recycle the power. or is it that the PC does not reboot after power is restored? Does the PC reboot if you pull and reinsert its mains plug? The PC's BIOS is correctly configured and tested to start up as soon as power is restored to it. WARNING: don't just pull the plug in a fully working system to avoid fs corruption - Press something r e i s u in sequence while holding Ctrl+Alt+SysRq and then pull the plug. If the PC's BIOS is configured correctly it should reboot as soon as you reconnect the mains supply to it. I am aware of it. Have a look here if you haven't seen this section already: http://www.apcupsd.com/manual/manual.html#arranging-for-reboot-on-power-up Looks like the UPS does not cut (kill) the power, but I am not sure how to debug it.
Re: [gentoo-user] apcupsd to recycle power
On Friday 14 Nov 2014 18:53:13 Thanasis wrote: > I have an APC SC620I, which in case of power failure, it successfully > initiates a shutdown to the connected (via SMART cable) PC, but if the > mains power returns, the UPS does not recycle the power to the PC, and > consequently the PC stays off. > > Regardless if the mains power returns soon after the UPS has initiated a > shutdown to the PC, shouldn't the UPS recycle the power anyway, so that > the PC comes back on as set in BIOS? > > Am I missing something in the configuration or the daemons that should > be running? > > (Running sys-power/apcupsd-3.14.8-r2) > > /etc/apcupsd/apcupsd.conf folows: > > UPSNAME SC620I > UPSCABLE smart > UPSTYPE apcsmart > DEVICE /dev/ttyS0 > LOCKFILE /var/lock > SCRIPTDIR /etc/apcupsd > PWRFAILDIR /etc/apcupsd > NOLOGINDIR /etc > ONBATTERYDELAY 6 > BATTERYLEVEL 20 > MINUTES 2 > TIMEOUT 0 > ANNOY 300 > ANNOYDELAY 60 > NOLOGON disable > KILLDELAY 0 > NETSERVER on > NISIP 192.168.0.1 > NISPORT 3551 > EVENTSFILE /var/log/apcupsd.events > EVENTSFILEMAX 10 > UPSCLASS standalone > UPSMODE disable > STATTIME 600 > STATFILE /var/log/apcupsd.status > LOGSTATS off > DATATIME 0 > BATTDATE 10/17/11 > SENSITIVITY H > WAKEUP 60 > SLEEP 180 > LOTRANSFER 208 > HITRANSFER 253 > RETURNCHARGE 45 > BEEPSTATE L > LOWBATT 5 > OUTPUTVOLTS 230 > SELFTEST 336 I'm afraid I don't have an APC UPS to know its quirks, but in my case I have these running: upsd upsdrv upslog upsmon Is it that the UPS does not recycle the power, or is it that the PC does not reboot after power is restored? Does the PC reboot if you pull and reinsert its mains plug? WARNING: don't just pull the plug in a fully working system to avoid fs corruption - Press something r e i s u in sequence while holding Ctrl+Alt+SysRq and then pull the plug. If the PC's BIOS is configured correctly it should reboot as soon as you reconnect the mains supply to it. Have a look here if you haven't seen this section already: http://www.apcupsd.com/manual/manual.html#arranging-for-reboot-on-power-up -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] syslog-ng-3.6.1 nearly no log anymore
On Sat, 15 Nov 2014 07:04:03 +0200, Alan McKinnon wrote: > > [U] app-admin/syslog-ng > > Available versions: 3.4.7^t 3.4.8^t (~)3.5.6t,^t{tbz2}[1] > > (~)3.6.1^t{tbz2} {amqp caps dbi geoip ipv6 json mongodb pacct +pcre > > redis smtp spoof-source ssl systemd tcpd} > > Installed versions: 3.5.6^t{tbz2}[1](05:21:52 PM > > 11/14/2014)(ipv6 json pcre ssl systemd tcpd -amqp -caps -dbi -geoip > > -mongodb -pacct - smtp -spoof-source) > > Homepage:http://www.balabit.com/network-security/ > > syslog-ng > > Description: syslog replacement with advanced filtering > > features > > I don't find any info on what the syslog-ng ebuild does with > USE=systemd, I suspect it may want to use the fancy logging features > built into systemd. Looking at the ebuild and ./configure --help output, it seems to be used to install service files and to change the restart command used by logrotate, which would cause you a problem later if you did actually get it working properly. There's also a configure option to use the journal, which may be the source of the problem. > Since you have it, but don't run it, does USE=-systemd fix the issue? Worth a try. If it does fix it I would consider it a bug since adding systemd support should not implicitly disable it under openrc. -- Neil Bothwick Windows Error #02: Multitasking attempted. System confused. pgpIeaDwpKpNX.pgp Description: OpenPGP digital signature