Re: [gentoo-user] Problems booting vanilla kernel 4.1.x

2015-08-25 Thread Alexander Kapshuk
On Tue, Aug 25, 2015 at 7:40 PM, Peter Weilbacher
newss...@weilbacher.org wrote:
 Hi Alexander,

 On Sun, 23 Aug 2015, Alexander Kapshuk wrote:

 On Sun, Aug 23, 2015 at 4:08 PM, Peter Weilbacher newss...@weilbacher.org 
 wrote:
 
  after successfully using kernel 4.0.5 (vanilla-sources) for a while, I
  upgraded to 4.1.5 last week and 4.1.6 today. I cannot boot either of
  them. On the screen I see
 
 Decompressing Linux... Parsing ELF... done.
 Booting the kernel.
 
  as the last thing, then it just sits there.

 I am running vanilla-sources 4.1.6, and so far I have not had any
 trouble booting it.

 Are you able to boot some of your previous kernels? If so, what does
 your '/boot/grub/grub.cfg' look like?
 What is the output of 'cat /etc/fstab' and 'ls -1 /boot'?

 I can still boot 4.0.5 fine, with the same setup. I use lilo, and I
 checked that I changed the two/four digits correctly in /etc/lilo.conf.

 By chance I left the boot sit there for more than the typical minute,
 and got multiple messages like

   INFO: rcu_sched self-detected stall on CPU { 3}  (t=6 jiffies g=-256 
 c=-257 q=193)
   rcu_sched kthread starved for 50027 jiffies!

 right after the above Booting the kernel. line.

 Do I need to activate a different kind of clocking or a CPU feature in
 4.1.x?

Peter.


I've never experienced this particular kernel trouble myself, so I'm
not sure if my input would be of much help.
Here's what the kernel documentation has to say about this kind of issue:

/usr/src/linux/Documentation/RCU/stallwarn.txt:29,33
CONFIG_RCU_CPU_STALL_INFO

This kernel configuration parameter causes the stall warning to
print out additional per-CPU diagnostic information, including
information on scheduling-clock ticks and RCU's idle-CPU tracking.

/usr/src/linux/Documentation/RCU/stallwarn.txt:104,109
If the CONFIG_RCU_CPU_STALL_INFO kernel configuration parameter is set,
more information is printed with the stall-warning message, for example:

INFO: rcu_preempt detected stall on CPU
0: (63959 ticks this GP) idle=241/3fff/0 softirq=82/543
   (t=65000 jiffies)

/usr/src/linux/Documentation/RCU/stallwarn.txt:240,250
To diagnose the cause of the stall, inspect the stack traces.
The offending function will usually be near the top of the stack.
If you have a series of stall warnings from a single extended stall,
comparing the stack traces can often help determine where the stall
is occurring, which will usually be in the function nearest the top of
that portion of the stack which remains the same from trace to trace.
If you can reliably trigger the stall, ftrace can be quite helpful.

RCU bugs can often be debugged with the help of CONFIG_RCU_TRACE
and with RCU's event tracing.  For information on RCU's event tracing,
see include/trace/events/rcu.h.

Have a look for possibly stack traces in these log files:
/var/log/{messages,dmesg}.

Hopefully, someone else with more kernel debugging experience will
have something more substantial to say about this.



Re: [gentoo-user] Endless preserved-rebuild loop, libmozalloc more

2015-08-25 Thread Alan McKinnon
On 25/08/2015 19:43, Fernando Rodriguez wrote:
 On Tuesday, August 25, 2015 12:30:09 PM Alan McKinnon wrote:
 On 25/08/2015 04:28, Fernando Rodriguez wrote:
 On Monday, August 24, 2015 9:31:38 PM Alan McKinnon wrote:
 Does anyone have an opinion to offer on bug 501468?

 https://bugs.gentoo.org/show_bug.cgi?id=501468

 It's been annoying me for a week now with this message:

 !!! existing preserved libs:
 package: www-client/firefox-40.0.2
  *  - /usr/lib64/firefox/libmozalloc.so
  *  used by /usr/lib64/thunderbird/components/libdbusservice.so
 (mail-client/thunderbird-38.2.0)
  *  used by /usr/lib64/thunderbird/components/libmozgnome.so
 (mail-client/thunderbird-38.2.0)
  *  used by
 /usr/lib64/thunderbird/distribution/extensions/{e2fda1a4-762b-4020-b5ad-
 a41df1933103}/components/libcalbasecomps.so
 (mail-client/thunderbird-38.2.0)
  *  used by 4 other files


 Both Mozilla products ship this file:

 $ locate libmozalloc
 /usr/lib64/firefox/libmozalloc.so
 /usr/lib64/thunderbird/libmozalloc.so

 and according to preserved libs, thunderbird linked to the firefox copy.
 The only offered solution on the bug is to use a MASK variable, which
 seems to me an ugly hammer to swat a fly.

 I was wondering if there's a better way been developed in the last year.

 Actually, now I have a general idea of what's going on and that sounds 
 like an 
 acceptable solution but perhaps I could be better. This is what happens:

 1. revdep-rebuild uses ldd to find breakage. It finds breakage in 
 libdbusservice.so because firefox uses tricks to preload the library from 
 it's 
 directory.
 2. revdep-rebuild find that thunderbird provides the library and thinks it 
 needs to be rebuild. (And wrongly tells you that firefox links against it).

 A better way would be:

 1. same as step 1 above
 2. revdep-rebuild checks the package that provides the broken binary (in 
 this 
 case the firefox package), if this package also provides the missing 
 library 
 then it's safe to ignore the problem.
 3. same as step 2 above.

 Another solution is to make patch firefox to use RPATH so ldd can find the 
 labraries, this would also make prelink work better with firefox but it's 
 probably not ideal to mantain.


 that does make sense. In my case, it's not revdep-rebuild causing
 problems, it's the preserved-rebuild message at the end of emerge -v

 At this level is there a difference?
 
 I don't know the details but it seems to me that portage either uses revdep-
 rebuild to find breakage (without scanning the whole system) before deleting 
 the old libs for good or duplicates some of it's logic. Come to think of it, 
 the SEARCH_DIR_MASK may not be ideal because if I understand what it does 
 correctly then real breakage in firefox won't be detected.
 

My thought too. To me, SEARCH_DIR_MASK is fine for things like
/opt/skype because it's binary and either works or it doesn't, and when
it doesn't there's not much I can do about it.

It may be the least sucky of all available solutions, but it's still
swatting a fly with a hammer


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




Re: [gentoo-user] Endless preserved-rebuild loop, libmozalloc more

2015-08-25 Thread Fernando Rodriguez
On Tuesday, August 25, 2015 12:30:09 PM Alan McKinnon wrote:
 On 25/08/2015 04:28, Fernando Rodriguez wrote:
  On Monday, August 24, 2015 9:31:38 PM Alan McKinnon wrote:
  Does anyone have an opinion to offer on bug 501468?
 
  https://bugs.gentoo.org/show_bug.cgi?id=501468
 
  It's been annoying me for a week now with this message:
 
  !!! existing preserved libs:
  package: www-client/firefox-40.0.2
   *  - /usr/lib64/firefox/libmozalloc.so
   *  used by /usr/lib64/thunderbird/components/libdbusservice.so
  (mail-client/thunderbird-38.2.0)
   *  used by /usr/lib64/thunderbird/components/libmozgnome.so
  (mail-client/thunderbird-38.2.0)
   *  used by
  /usr/lib64/thunderbird/distribution/extensions/{e2fda1a4-762b-4020-b5ad-
  a41df1933103}/components/libcalbasecomps.so
  (mail-client/thunderbird-38.2.0)
   *  used by 4 other files
 
 
  Both Mozilla products ship this file:
 
  $ locate libmozalloc
  /usr/lib64/firefox/libmozalloc.so
  /usr/lib64/thunderbird/libmozalloc.so
 
  and according to preserved libs, thunderbird linked to the firefox copy.
  The only offered solution on the bug is to use a MASK variable, which
  seems to me an ugly hammer to swat a fly.
 
  I was wondering if there's a better way been developed in the last year.
  
  Actually, now I have a general idea of what's going on and that sounds 
like an 
  acceptable solution but perhaps I could be better. This is what happens:
  
  1. revdep-rebuild uses ldd to find breakage. It finds breakage in 
  libdbusservice.so because firefox uses tricks to preload the library from 
it's 
  directory.
  2. revdep-rebuild find that thunderbird provides the library and thinks it 
  needs to be rebuild. (And wrongly tells you that firefox links against it).
  
  A better way would be:
  
  1. same as step 1 above
  2. revdep-rebuild checks the package that provides the broken binary (in 
this 
  case the firefox package), if this package also provides the missing 
library 
  then it's safe to ignore the problem.
  3. same as step 2 above.
  
  Another solution is to make patch firefox to use RPATH so ldd can find the 
  labraries, this would also make prelink work better with firefox but it's 
  probably not ideal to mantain.
 
 
 that does make sense. In my case, it's not revdep-rebuild causing
 problems, it's the preserved-rebuild message at the end of emerge -v
 
 At this level is there a difference?

I don't know the details but it seems to me that portage either uses revdep-
rebuild to find breakage (without scanning the whole system) before deleting 
the old libs for good or duplicates some of it's logic. Come to think of it, 
the SEARCH_DIR_MASK may not be ideal because if I understand what it does 
correctly then real breakage in firefox won't be detected.

-- 
Fernando Rodriguez



Re: [gentoo-user] [SOLVED] nepomuk gone, baloo enters

2015-08-25 Thread Francisco Ares
2015-08-24 15:57 GMT-03:00 Fernando Rodriguez 
frodriguez.develo...@outlook.com:

 On Monday, August 24, 2015 11:31:04 AM Francisco Ares wrote:
  2015-08-24 10:13 GMT-03:00 Francisco Ares fra...@gmail.com:
 
  
  
   2015-08-24 9:14 GMT-03:00 Francisco Ares fra...@gmail.com:
  
   Thanks, Dale, for your point of view.
  
   But since I'm not the only user (my wife is forced to use it, too ;-)
   )and I am the only one that knows how to use a command line session,
 for
   instance, I still want to try to make this semantic desktop thing to
 work.
  
   Thanks, again, and
   Best Regards
   Francisco
  
   2015-08-21 22:36 GMT-03:00 Dale rdalek1...@gmail.com:
  
   Fernando Rodriguez wrote:
On Friday, August 21, 2015 6:27:36 PM Dale wrote:
Francisco Ares wrote:
Hi,
   
In fact, I can only suppose there's something related to changing
   from
nepomuk to baloo:
   
Now, every time I log in, a window pops up asking for root
 password.
The window title is PolicyKit - KDE and pressing the button
Details, it shows:
   
Action: Folder Watch Limit
polkit.subject-pid:5254
polkit.caller-pid: 6699
   
Looking for those PIDs:
   
~ $ ps -A | grep 5254
 5254 ?00:00:07 baloo_file
   
and PID 6699 doesn't show up any more, probably the process has
already ended.
   
Did I miss something? How do I set up Baloo? Looking on the net,
 I
only found how to set up a file
 ~/.kde4/share/config/nepomukserverrc
(that was nonexistent, which seemed strange), is there something
 else
regarding the database it might be willing to use?
   
Thank you all.
Francisco
   
   
Reading your posts, it seems you don't really want this feature
 of
KDE.  Why not disable the thing?  I have this in make.conf:
   
-nepomuk  -semantic-desktop
   
So far, that has disabled the whole desktop search thingy, that I
 also
found to be a pest and never needed.
   
Just a thought, in case you wasn't aware.
   
Dale
   
:-)  :-)
Do you use kmail? I disabled nepomuk at one point and I wasn't
 able to
   access
my contacts on kmail. I think it's the same with baloo. And from
 what
   I've
read the plan is for more applications to use it so you may miss
   important
features. They recommend just disabling file indexing or adding
 your
   home
directory to the exclusion list on system settings, But after doing
   that I
still got that popup a few times until I okay'd it.
   
  
  
   I used to use Kmail until all this mess started.  I think the last I
   used Kmail was back in KDE3.  When I saw all this mess coming, I
   switched to Seamonkey.  Seamonkey does all my email stuff and I'm
 happy
   with it.  I do wish the sound notification thingy would work tho.
 Maybe
   I just need to sit down one day and try to figure out why it doesn't
   work.  Sound works everywhere else.  Still, it does what I really
 need
   without to much bloat.
  
   I installed KDE with the kde-meta.  It basically installs everything
 but
   the kitchen sink.  To be honest tho, I could likely install it in a
   better way that leaves out TONS of stuff I never use.  This file
 indexer
   thingy is one of the ones I have never had a need for.  If I want to
   find some file, locate, find and etc works for those rare
 occasions.  It
   is rare since I'm fairly well organized with my stuff.  Well,
 computer
   files at least.  My closet and shop is a different matter tho.  lol
  
   My point was that this can be disabled IF it is not needed.  If it is
   needed, then fixing it is the solution.  If it is not, disable it and
   shove the problem into the trash can.  ;-)
  
   Dale
  
   :-)  :-)
  
  
  
  
   Thanks to all that have posted.
  
   I tried a clean start:  I've deleted all related (at least all that I
   could find) files used by baloo (just kept some backup copies in a ZIP
   file, just in case).
  
   As expected, all of them are back, and also that popup window,
 requiring
   root password.
  
   I guess, now, I am (we are) looking on the wrong place, perhaps this
 is a
   global setting, not a user one.
  
   Going to check this out.
  
   Thanks again, and
   Best Regards
   Francisco
  
 
 
  Found this:
 
  ~ # cat /etc/dbus-1/system.d/org.kde.baloo.filewatch.conf
  !DOCTYPE busconfig PUBLIC
   -//freedesktop//DTD D-BUS Bus Configuration 1.0//EN
   http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd;
  busconfig
 
!-- Only user root can own the foo helper --
policy user=root
  allow own=org.kde.baloo.filewatch/
/policy
 
  /busconfig
 
 
  Looks like there might be something related to what I am facing, isn't
 it?
 
  Googling the file name, I got this:
 
  https://bugs.kde.org/show_bug.cgi?id=339465
 

 https://www.reddit.com/r/kde/comments/2ibdf7/what_is_baloo_file_watch_and_why_does_it_need/
 
 

Re: [gentoo-user] Gentoo on a Lenovo X1 Carbon (3rd gen)

2015-08-25 Thread Ralf
On 08/25/2015 03:21 PM, Alec Ten Harmsel wrote:
 On Tue, Aug 25, 2015 at 02:56:10PM +0200, Ralf wrote:
 Hi folks,

 i just got my brand new Lenovo X1 Carbon and trying to get Gentoo
 running on it.
 
 I have a big problem with my kernel:

 It doesn't come back from standby.
 After closing the lid, the standby LED starts breathing, opening the lid
 doesn't change anything, even pressing the power button does not wake up
 the system. The only option is to reset the system by holding down the
 power button. Journalctl doesn't say anything except of System reboot
 after the Standby message:

 ralf@omega:~$ sudo journalctl | grep -i lid closed -A
 10   

 130
 Aug 23 19:12:20 omega systemd-logind[2075]: Lid closed.
 Aug 23 19:12:20 omega systemd-logind[2075]: Suspending...
 Aug 23 19:12:20 omega systemd[1]: Reached target Sleep.
 Aug 23 19:12:20 omega systemd[1]: Starting Suspend...
 Aug 23 19:12:20 omega systemd-sleep[2175]: Suspending system...
 -- Reboot --
 ..

 So I tried installing Arch linux (same kernel version, 4.1.6). Arch
 wakes up without any problems. As a try and quick fixI copied the Arch
 Kernel+Modules to my Gentoo system and it works fine, which means to me
 that I probably have a misconfigured kernel.
 But that's not the Gentoo way, I'd like to compile the kernel on my own.
 Cool, at least it is supported. I know someone with that got a brand new
 Lenovo about a year ago and had loads of issues with it, even with the
 bleeding edge kernels in Arch.

 Does anyone know what I might be missing in my kernel config?
 Or does anyone also have a X1 Carbon 3rd generation and would like to
 share the .config with me?
 Do you have SUSPEND=y (just checking)? Other things that I can
 see related to suspend are SUSPEND_FREEZER, ACPI_SLEEP,
 APM_IGNORE_USER_SUSPEND, and a bunch of Thinkpad/Lenovo related options.
 I do not have suspend enabled on my laptop, so take this with a grain of
 salt.
Yeah, everything is set, even THINKPAD_ACPI. Still does not wake up :-(

 If you want to search various kernel options, you can run `make
 menuconfig` in the source directory and use '/' (forward slash) to
 search just like you're in `less'.

 Alec





Re: [gentoo-user] Gentoo on a Lenovo X1 Carbon (3rd gen)

2015-08-25 Thread Ralf
On 08/25/2015 03:35 PM, Alan McKinnon wrote:
 On 25/08/2015 14:56, Ralf wrote:
 Hi folks,

 i just got my brand new Lenovo X1 Carbon and trying to get Gentoo
 running on it.

 Beside some really big issues (HiDPI display, 2048x1152 resolution on a
 14 display really sucks on linux, xrandr scaling is horrible, no
 scaling is damn too small to read, missing touch support in most
 applications, ...) I have a big problem with my kernel:

 It doesn't come back from standby.
 After closing the lid, the standby LED starts breathing, opening the lid
 doesn't change anything, even pressing the power button does not wake up
 the system. The only option is to reset the system by holding down the
 power button. Journalctl doesn't say anything except of System reboot
 after the Standby message:

 ralf@omega:~$ sudo journalctl | grep -i lid closed -A
 10   

 130
 Aug 23 19:12:20 omega systemd-logind[2075]: Lid closed.
 Aug 23 19:12:20 omega systemd-logind[2075]: Suspending...
 Aug 23 19:12:20 omega systemd[1]: Reached target Sleep.
 Aug 23 19:12:20 omega systemd[1]: Starting Suspend...
 Aug 23 19:12:20 omega systemd-sleep[2175]: Suspending system...
 -- Reboot --
 ..

 So I tried installing Arch linux (same kernel version, 4.1.6). Arch
 wakes up without any problems. As a try and quick fixI copied the Arch
 Kernel+Modules to my Gentoo system and it works fine, which means to me
 that I probably have a misconfigured kernel.
 But that's not the Gentoo way, I'd like to compile the kernel on my own.

 Does anyone know what I might be missing in my kernel config?
 Or does anyone also have a X1 Carbon 3rd generation and would like to
 share the .config with me?


 Grab the .config files from both running systems and diff them. Expect
 the output to be long but with care you can narrow down the important
 differences.
I also had that idea. The problem is, that Arch uses almost _everything_
as module. So it's hard to figure out the critical module...



Re: [gentoo-user] Gentoo on a Lenovo X1 Carbon (3rd gen)

2015-08-25 Thread Alec Ten Harmsel
On Tue, Aug 25, 2015 at 06:38:16PM +0200, Ralf wrote:
 On 08/25/2015 03:21 PM, Alec Ten Harmsel wrote:
  Do you have SUSPEND=y (just checking)? Other things that I can
  see related to suspend are SUSPEND_FREEZER, ACPI_SLEEP,
  APM_IGNORE_USER_SUSPEND, and a bunch of Thinkpad/Lenovo related options.
  I do not have suspend enabled on my laptop, so take this with a grain of
  salt.
 Yeah, everything is set, even THINKPAD_ACPI. Still does not wake up :-(

If you still have the Arch kernel, could you run `lsmod' when that
kernel is booted and diff it against an `lsmod' when your Gentoo kernel
is booted?

If that doesn't help, could you attach your config to a reply?

Alec



Re: [gentoo-user] Gentoo on a Lenovo X1 Carbon (3rd gen)

2015-08-25 Thread Ralf
Hi,

On 08/25/2015 03:45 PM, Jeremi Piotrowski wrote:
 I have a T440s and would expect the two to be quite similar from an ACPI
 point of view, so let's see if I can help.

 On Tue, 25 Aug 2015, Ralf wrote:

 It doesn't come back from standby.
 After closing the lid, the standby LED starts breathing, opening the lid
 doesn't change anything, even pressing the power button does not wake up
 the system. The only option is to reset the system by holding down the
 power button. 
 This might be a long-shot but could you check

 cat /proc/acpi/wakeup

 The lid-wakeup action can be toggled there. I also have a SLPB device in
 that file, which could map to the power button in some cases?
I compared the /proc/acpi/wakup of both kernels - they equal. So that's
not the problem


 As a try and quick fixI copied the Arch Kernel+Modules to my Gentoo
 system and it works fine, which means to me that I probably have a
 misconfigured kernel.  But that's not the Gentoo way, I'd like to
 compile the kernel on my own.
 You could try diffing your config with the arch kernel config. Should be
 present in /boot. Then look for suspicious differences, it's not as hard
 as it seems, I've done it with the fedora kernel to solve problems.
The problem is, that Arch uses almost everything as modules. I have a
full-disc encrypted gentoo and I need a lot of stuff to be statically
compiled, as I don't want to have modules inside my initrd.

Anyway, I'll try it out.


 Does anyone know what I might be missing in my kernel config?
 Try my config (attached), I don't know how it compares to the arch one but
 suspend/resume works correctly here. It may be easier to pinpoint the cause
 with it. You'll have to enable systemd.
Thanks for your config! I tried it - just made a few adjustements
(statically compiled dm-crypt and crypto modules). Still the same problem..


  Ralf




[gentoo-user] Re: emerge world looking grim

2015-08-25 Thread James
Rich Freeman rich0 at gentoo.org writes:


  Are you going to roll out some notes on putting
  raid-1::btrfs onto HD? Or just the VM install?

Sure. What about an example fstab using names and UUIDs
at the same time, or and fstab with UUID and one with labels
if they cannot be used simultaneously in the same fstab.

(boot root and swap only :: just to keep it simple)


 The notes should work just fine for installing that on an HD.  Is
 there something you found missing in them?

I'm working on setting up a bunch of old boxes to test installations
on actual hardware. Part of that is more AC and UPS capacity in
the lab. Wiring  and more breakers (AFCI/GFI) so the project has 
grown and there are other non related HW issues I'm working on too.



 The only thing they aren't targeted at is EFI.  I'd need to mess with
 that a bit in a VM as I do not have any EFI hardware other than my
 chromebook, which seems fussier than most as far as what it boots.


Yep. Previously we have discuss MBR/EFI  grub1-grub2,  gpt  ( wT disks)
and tools to effect the (/boot/root/swap). And then there
is the need for a quick or unattended install semantic, before
I can rigorously  test those many conflicts. I'll start a new thread
when I'm ready. Best guess is a few weeks.


thx,
James








Re: [gentoo-user] Problems booting vanilla kernel 4.1.x

2015-08-25 Thread Peter Weilbacher
Hi Alexander,

On Sun, 23 Aug 2015, Alexander Kapshuk wrote:

 On Sun, Aug 23, 2015 at 4:08 PM, Peter Weilbacher newss...@weilbacher.org 
 wrote:
 
  after successfully using kernel 4.0.5 (vanilla-sources) for a while, I
  upgraded to 4.1.5 last week and 4.1.6 today. I cannot boot either of
  them. On the screen I see
 
 Decompressing Linux... Parsing ELF... done.
 Booting the kernel.
 
  as the last thing, then it just sits there.

 I am running vanilla-sources 4.1.6, and so far I have not had any
 trouble booting it.

 Are you able to boot some of your previous kernels? If so, what does
 your '/boot/grub/grub.cfg' look like?
 What is the output of 'cat /etc/fstab' and 'ls -1 /boot'?

I can still boot 4.0.5 fine, with the same setup. I use lilo, and I
checked that I changed the two/four digits correctly in /etc/lilo.conf.

By chance I left the boot sit there for more than the typical minute,
and got multiple messages like

  INFO: rcu_sched self-detected stall on CPU { 3}  (t=6 jiffies g=-256 
c=-257 q=193)
  rcu_sched kthread starved for 50027 jiffies!

right after the above Booting the kernel. line.

Do I need to activate a different kind of clocking or a CPU feature in
4.1.x?

   Peter.



Re: [gentoo-user] Re: Anyone using xfce4 with compositing turned off?

2015-08-25 Thread wabenbau
walt w41...@gmail.com wrote:

 On Tue, 25 Aug 2015 21:10:28 +0200
 waben...@gmail.com wrote:
 
   Kernel driver in use: radeon
 
 gigabytes snipped for readability
 
 Hi wabe.  This whole radeon thing is so confusing I thought I'd
 mention one more very confusing detail that I had to fix before I got
 the open- source ati/radeon driver to work correctly:
 
 First I tried starting my X session with no xorg.conf file at all.
 That didn't work but of course I can't remember now what went wrong.
 (That was already more than 24 hours ago :)

It's good to know that I'm not the only one with a week memory. Every 
day I thank God for these little yellow post-it stickers. :-)

 Then I generated an xorg.conf in the old way using 'Xorg -configure'.
 That file didn't work right either.
 
 Then I finally realized that the generated xorg.conf had, in the
 Section Device section, this line:
 
 Driverradeon
 
 But that's not what we want.  To use the open-source ati driver I
 changed that line to read:
 
 Driverati
 
 And that's when everything finally started to work perfectly.

That's strange. What kind of GPU do you have? With my R7 250E I must 
use radeon as driver in xorg.conf. IIRC I also used the same config
for my old GPU (Radeon HD4550).

 One more thing that confused me:  the xf86-video-ati package doesn't
 install any kernel modules.  It installs only these two files:
 
 /usr/lib64/xorg/modules/drivers/radeon_drv.so
 /usr/lib64/xorg/modules/drivers/ati_drv.so

That's ok. It's the same on my system. 

BTW: I don't use any kernel modules at all.
 
 but to use those files you need that Driver ati line in xorg.conf.
 sigh

Below you find my complete xorg.conf. Actually I don't know if my X 
would also work without the device section. What I remember is that 
I had trouble to get my keyboard working without the InputDevice 
section. But this is some years ago. Meanwhile I have a new keyboard 
and maybe I don't need a xorg.conf anymore.

I will test this soon, if I don't forget it. :-)


Section InputDevice
  Driverkbd
  IdentifierKeyboard[0]
  OptionAutoRepeat500 2
  OptionProtocol  Standard
  OptionXkbModel  pc105
  OptionXkbLayout de
  OptionXkbVariantnodeadkeys
EndSection

Section Device
  IdentifierATI-Card
  Driverradeon
EndSection


--
Regards
wabe



Re: [gentoo-user] keeping grub 1

2015-08-25 Thread Florian Gamböck

Hi James!

Am 25.08.2015 um 20:44 schrieb James:

If I just unmerge grub and emerge grub-static, is that the
best way to prevent grub-2 from ever being installed?


If you want to keep your good old sys-boot/grub:0, just put exactly that 
into your world file, including with the slot-version (the :0 at the 
end). At least in the main portage tree, grub-2 uses slot 2, whereas 
grub-1 stays in slot 0.


Alternatively you could put something like =sys-boot/grub-2 or even 
sys-boot/grub:2 into package.mask.


HTH,
--Flo



Re: [gentoo-user] Endless preserved-rebuild loop, libmozalloc more

2015-08-25 Thread Fernando Rodriguez
On Tuesday, August 25, 2015 7:58:44 PM Alan McKinnon wrote:
 On 25/08/2015 19:43, Fernando Rodriguez wrote:
  On Tuesday, August 25, 2015 12:30:09 PM Alan McKinnon wrote:
  On 25/08/2015 04:28, Fernando Rodriguez wrote:
  On Monday, August 24, 2015 9:31:38 PM Alan McKinnon wrote:
  Does anyone have an opinion to offer on bug 501468?
 
  https://bugs.gentoo.org/show_bug.cgi?id=501468
 
  It's been annoying me for a week now with this message:
 
  !!! existing preserved libs:
  package: www-client/firefox-40.0.2
   *  - /usr/lib64/firefox/libmozalloc.so
   *  used by /usr/lib64/thunderbird/components/libdbusservice.so
  (mail-client/thunderbird-38.2.0)
   *  used by /usr/lib64/thunderbird/components/libmozgnome.so
  (mail-client/thunderbird-38.2.0)
   *  used by
  /usr/lib64/thunderbird/distribution/extensions/{e2fda1a4-762b-4020-
b5ad-
  a41df1933103}/components/libcalbasecomps.so
  (mail-client/thunderbird-38.2.0)
   *  used by 4 other files
 
 
  Both Mozilla products ship this file:
 
  $ locate libmozalloc
  /usr/lib64/firefox/libmozalloc.so
  /usr/lib64/thunderbird/libmozalloc.so
 
  and according to preserved libs, thunderbird linked to the firefox copy.
  The only offered solution on the bug is to use a MASK variable, which
  seems to me an ugly hammer to swat a fly.
 
  I was wondering if there's a better way been developed in the last 
year.
 
  Actually, now I have a general idea of what's going on and that sounds 
  like an 
  acceptable solution but perhaps I could be better. This is what happens:
 
  1. revdep-rebuild uses ldd to find breakage. It finds breakage in 
  libdbusservice.so because firefox uses tricks to preload the library from 
  it's 
  directory.
  2. revdep-rebuild find that thunderbird provides the library and thinks 
it 
  needs to be rebuild. (And wrongly tells you that firefox links against 
it).
 
  A better way would be:
 
  1. same as step 1 above
  2. revdep-rebuild checks the package that provides the broken binary (in 
  this 
  case the firefox package), if this package also provides the missing 
  library 
  then it's safe to ignore the problem.
  3. same as step 2 above.
 
  Another solution is to make patch firefox to use RPATH so ldd can find 
  the 
  labraries, this would also make prelink work better with firefox but it's 
  probably not ideal to mantain.
 
 
  that does make sense. In my case, it's not revdep-rebuild causing
  problems, it's the preserved-rebuild message at the end of emerge -v
 
  At this level is there a difference?
  
  I don't know the details but it seems to me that portage either uses 
revdep-
  rebuild to find breakage (without scanning the whole system) before 
deleting 
  the old libs for good or duplicates some of it's logic. Come to think of 
it, 
  the SEARCH_DIR_MASK may not be ideal because if I understand what it does 
  correctly then real breakage in firefox won't be detected.
  
 
 My thought too. To me, SEARCH_DIR_MASK is fine for things like
 /opt/skype because it's binary and either works or it doesn't, and when
 it doesn't there's not much I can do about it.
 
 It may be the least sucky of all available solutions, but it's still
 swatting a fly with a hammer

Maybe the bug should be filed against portage to get the right people to look 
at it. The fix should be simple, just check the package with the broken binary 
first. It seems to use lexical order so it finds firefox before thunderbird.

It would benefit binary packages too. You cannot rebuild skype but you can 
preserve the library until the vendor releases a new binary. You would get an 
endless preseved-libs loop for it but that's preferable to a broken skype.

-- 
Fernando Rodriguez



[gentoo-user] keeping grub 1

2015-08-25 Thread James
Hello,


So on one particular (openrc) system, I have no interest in grub-2
or any other bootloaders. I see grub is both grub 1 and grub 2.

If I just unmerge grub and emerge grub-static, is that the
best way to prevent grub-2 from ever being installed?
Other caveats to worry about?


TIA,
James




Re: [gentoo-user] Gentoo on a Lenovo X1 Carbon (3rd gen)

2015-08-25 Thread wabenbau
Ralf ralf+gen...@ramses-pyramidenbau.de wrote:

 Hi folks,
 
 i just got my brand new Lenovo X1 Carbon and trying to get Gentoo
 running on it.
 
 Beside some really big issues (HiDPI display, 2048x1152 resolution on
 a 14 display really sucks on linux, xrandr scaling is horrible, no
 scaling is damn too small to read, missing touch support in most

I also have some HiDPI display (140 DPI) but text and icon rendering is
perfect with XFCE. It's even much better than with my windows 7 machine.
Your display has a higher resolution (168 DPI) but I don't think that 
this makes a big difference. Maybe there is a way to tweak your Desktop
settings for a better rendering/scaling?

--
Regards
wabe



Re: [gentoo-user] Anyone using xfce4 with compositing turned off?

2015-08-25 Thread wabenbau
Mick michaelkintz...@gmail.com wrote:

 On Saturday 22 Aug 2015 03:08:41 waben...@gmail.com wrote:
  walt w41...@gmail.com wrote:
   I'm seeing horrible performance from the xfce window manager
   (xfwm4) on my main, everyday machine, but not on an older backup
   machine or on any of the linux virtual machines I run on
   virtualbox.
   
   The symptoms:  moving a window with the mouse is so slow as to be
   painful, and the CPU usage (on one of four CPUs) jumps to 100%
   almost immediately (xfwm4 is the culprit, see below).
  
  I'm using XFCE as DE and xfwm4 as WM. Since I bought a new GPU
  (Radeon R7 250), I don't use compositing any more because it causes
  tearing when I watch videos in fullscreen with 3840x2160. With this
  GPU I also had some random freezes when compositing was enabled.
  
  Beside this, performance is very good, regardless compositing is
  enabled or disabled. Scrolling text or moving windows around is a
  bit faster and smoother with compositing enabled, especially when
  other windows are in the foreground.
  
  With my old GPU (Radeon HD4550) I always had compositing enabled.
  Everything was smoother and I saw absolutely no glitches, but
  performance was also good with compositing disabled, just not quite
  as smooth as with compositing enabled.
  
   If I open an xterm and run (for example) /usr/bin/marco
   --replace, this sluggish behavior returns to normal immediately.
   
   After wasting hours on google I finally noticed that I had
   compiled x11-wm/xfwm4 with the xcomposite useflag disabled, so I
   enabled it and re-emerged xfwm4.
   
   Now I can get decent performance from xfwm4, but only if first I
   turn on compositing by running xfwm4-tweaks-settings.  (No, not
   by running the puny and feeble xfwm4-settings app:  I need to
   invoke a tweak to make xfce4 an acceptable Desktop Environment
   on my main desktop machine.
  
  As long as I use XFCE (many years) xfwm4-tweaks-settings is the
  program to toggle compositing. It's just a name, what is the
  problem? :-) Or do you mean, that you must enable compositing every
  time you start XFCE?
  
   official rant mode
   I remember going through this same frustration with gnome3, which
   was (and is) unusable without installing the gnome-tweak-tool
   package and using it to customize settings that I still don't
   understand.
   
   (That's why I finally gave up on gnome3, and I may yet give up on
   xfce4 and go back to mate.)
   
   Note that I'm not turning off official rant mode yet, but I
   should mention that this machine is ~amd64 with ati-drivers-15.7
   and vanilla kernel 3.14.51.  (Same problem with
   gentoo-sources-3.18.19, BTW.)
  
  I'm using stable xf86-video-ati and stable hardened-sources. I
  never used ati-drivers because I don't like to have proprietary
  software on my gentoo box. For me xf86-video-ati works well and has
  a sufficient 2D and 3D performance.
  
  --
  Regards
  wabe
 
 Hmm ... interesting.  I have a PC with the Kaveri APU, which also
 uses the R7 graphics engine, but compositing has no problems for
 general desktop usage (with two monitors).
 
 00:01.0 VGA compatible controller: Advanced Micro Devices, Inc.
 [AMD/ATI] Kaveri [Radeon R7 Graphics] (prog-if 00 [VGA controller])
   Subsystem: ASUSTeK Computer Inc. Kaveri [Radeon R7 Graphics]
   Flags: bus master, fast devsel, latency 0, IRQ 25
   Memory at e000 (64-bit, prefetchable) [size=256M]
   Memory at f000 (64-bit, prefetchable) [size=8M]
   I/O ports at f000 [size=256]
   Memory at feb0 (32-bit, non-prefetchable) [size=256K]
   Expansion ROM at feb4 [disabled] [size=128K]
   Capabilities: [48] Vendor Specific Information: Len=08 ?
   Capabilities: [50] Power Management version 3
   Capabilities: [58] Express Root Complex Integrated Endpoint,
 MSI 00 Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
   Capabilities: [100] Vendor Specific Information: ID=0001
 Rev=1 Len=010 ? Capabilities: [270] #19
   Capabilities: [2b0] Address Translation Service (ATS)
   Capabilities: [2c0] #13
   Capabilities: [2d0] #1b
   Kernel driver in use: radeon
 
 I don't know if your card is significantly different, but can share
 settings if you are interested.

Hi Mick,

it seems that there are some differences (see below) but I'm interested 
in your settings anyway. Maybe they help me to make compositing usable
on my system, but actually I don't have much hope that this will be
the case.

Without composite, my system is rock stable and video playback is smooth.
First I missed the fancy window/menu shadows and the semi-transparency 
when moving/resizing windows, but now I'm also happy without these eye 
candies. The only thing that I'm still missing is the smooth scrolling
of window content. This is indeed a bit better with compositing enabled.

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cape 
Verde PRO [Radeon HD 7750 / R7 

Re: [gentoo-user] Endless preserved-rebuild loop, libmozalloc more

2015-08-25 Thread Alan McKinnon
On 25/08/2015 04:28, Fernando Rodriguez wrote:
 On Monday, August 24, 2015 9:31:38 PM Alan McKinnon wrote:
 Does anyone have an opinion to offer on bug 501468?

 https://bugs.gentoo.org/show_bug.cgi?id=501468

 It's been annoying me for a week now with this message:

 !!! existing preserved libs:
 package: www-client/firefox-40.0.2
  *  - /usr/lib64/firefox/libmozalloc.so
  *  used by /usr/lib64/thunderbird/components/libdbusservice.so
 (mail-client/thunderbird-38.2.0)
  *  used by /usr/lib64/thunderbird/components/libmozgnome.so
 (mail-client/thunderbird-38.2.0)
  *  used by
 /usr/lib64/thunderbird/distribution/extensions/{e2fda1a4-762b-4020-b5ad-
 a41df1933103}/components/libcalbasecomps.so
 (mail-client/thunderbird-38.2.0)
  *  used by 4 other files


 Both Mozilla products ship this file:

 $ locate libmozalloc
 /usr/lib64/firefox/libmozalloc.so
 /usr/lib64/thunderbird/libmozalloc.so

 and according to preserved libs, thunderbird linked to the firefox copy.
 The only offered solution on the bug is to use a MASK variable, which
 seems to me an ugly hammer to swat a fly.

 I was wondering if there's a better way been developed in the last year.
 
 Actually, now I have a general idea of what's going on and that sounds like 
 an 
 acceptable solution but perhaps I could be better. This is what happens:
 
 1. revdep-rebuild uses ldd to find breakage. It finds breakage in 
 libdbusservice.so because firefox uses tricks to preload the library from 
 it's 
 directory.
 2. revdep-rebuild find that thunderbird provides the library and thinks it 
 needs to be rebuild. (And wrongly tells you that firefox links against it).
 
 A better way would be:
 
 1. same as step 1 above
 2. revdep-rebuild checks the package that provides the broken binary (in this 
 case the firefox package), if this package also provides the missing library 
 then it's safe to ignore the problem.
 3. same as step 2 above.
 
 Another solution is to make patch firefox to use RPATH so ldd can find the 
 labraries, this would also make prelink work better with firefox but it's 
 probably not ideal to mantain.


that does make sense. In my case, it's not revdep-rebuild causing
problems, it's the preserved-rebuild message at the end of emerge -v

At this level is there a difference?


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




Re: [gentoo-user] Missing digest for *** Tree looks messed up.

2015-08-25 Thread Peter Humphrey
On Monday 24 August 2015 10:44:19 Michael Orlitzky wrote:
 On 08/24/2015 09:47 AM, Peter Humphrey wrote:
  On Monday 24 August 2015 08:12:28 Michael Orlitzky wrote:
  On 08/24/2015 08:08 AM, Peter Humphrey wrote:
  Is syncing not yet sorted out? A fortnight later I'm still getting
  something like 24000 manifests synced every day, and about a week ago I
  got all the change-logs too.
  
  That was expected... one more time. Hopefully it shouldn't happen again.
  
  Which, the change-logs or the manifests?
  
  I can't help thinking that all those - billions? - of little files being
  transferred every day must be slugging the net somewhat.
 
 Both I think. I don't really know what was wrong, but some other people
 do, and they say it should be fixed.
 
As Fernando noted, it is now. Two syncs today: the first copied 41,787 files, 
the second 344.

 https://archives.gentoo.org/gentoo-dev/message/2c69bdebe4f7700bc939edd6780ca
 a6c
 
 https://archives.gentoo.org/gentoo-dev/message/c1a370104718167b2e7a53dbe14e7
 c17

-- 
Rgds
Peter




[gentoo-user] Re: emerge world looking grim

2015-08-25 Thread Harry Putnam
Alan McKinnon alan.mckin...@gmail.com writes:

 Either way, you should be back up and running come Thursday latest :-)
 Hey, this is Gentoo, here we like watching gcc outpt scroll by for
 hours/days at a time.

Hehe ... It did take a while but partly because of some trouble
vbox itself... but mainly due to seriously thinning content in the noggin.

Up and running  since earlier today and currently grinding away at the
LXDE meta package.

Good basic console system in place now.




[gentoo-user] Re: emerge world looking grim

2015-08-25 Thread Harry Putnam
Rich Freeman ri...@gentoo.org writes:

 I'd suggest not doing stuff like this in the future. 

I got a bigger laugh out of this than anything I've seen for a while.

Such a mild statement... covering seriously demented mistakes.




[gentoo-user] Re: emerge world looking grim

2015-08-25 Thread Harry Putnam
Rich Freeman ri...@gentoo.org writes:

 Uh, not to drag you through the mud, but what gave you the idea to try
 that?  I'm mainly interested so that we can go fix it if there is some
 document that is leading people astray.

I seriously doubt there is any such document ... My troubles stemmed
from the exact opposite... not consulting enough documents.
And heavy handed tendency to just jump right in without much
research. 

The only thing I can say on my own behalf is that there was once a
time when it wasn't so far fetched to start emerge -vC 'ing stuff.

Yrs ago gentoo was not yet so complex as it is today.  Ditto for the
other linux's

I'm sure my way will smooth out immensely with just a little immersion
back into gentoo as old memories are kicked into life (At least I hope
so ...)




[gentoo-user] about online database of files per pkg

2015-08-25 Thread Harry Putnam
Not doing too well with google on this...

Can anyong direct me to a database for gentoo where one can find
out which tools/files go with which pkg.




Re: [gentoo-user] about online database of files per pkg

2015-08-25 Thread Alan McKinnon
On 26/08/2015 00:13, Harry Putnam wrote:
 Not doing too well with google on this...
 
 Can anyong direct me to a database for gentoo where one can find
 out which tools/files go with which pkg.
 
 


As far as I know, there's no such thing. On Ubuntu when you install
firefox, you get an exact list of files that is the same for everyone.
On Gentoo when you install firefox, the list of files you get depends on
USE and whether the dev did any tweaks to the ebuild today.

There's been some efforts at making such a database, for example
http://www.portagefilelist.de
but that doesn't seem to work anymore. Maybe another project has picked
up the ball but I don't know of any.

This is not such a big problem as it might appear. If you are familiar
with the Gentoo base system it's usually obvious what package will give
you the file. The exception is basic utilities like cut and head and
tail. They are not tin their own package but in a big utility one, maybe
it's coreutils maybe it's util-linux. I avoid the problem by always
installing both :-)

Fo9r the rare case where you really can't figure it out, you can always
ask here for someone with the file to equery it and find where it came from.


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




Re: [gentoo-user] Re: Epic list of total FAIL.

2015-08-25 Thread Dale
Frank Steinmetzger wrote:
 On Sat, Aug 22, 2015 at 06:28:45PM -0500, Dale wrote:

 Alan Grimes wrote:
 The PSU is an Antec EarthWatts 750.

 Biggest hoggs outside the motherboard are the, um, er, well [nvidia 980
 gpu] and an aging Western Digital Velociraptor boot drive. There is also
 a 3TB drive for all my p***, er kerbals   ( Kerbal Space Program ) .
 It just means your P/S is running at half power most of the time.
 Which may be a good idea, since then it’d be running at optimum efficiency.


Yep.  I would not buy a P/S that didn't have at least 30 or 40% of
headroom.  If nothing else, as the P/S ages, it wouldn't be so stressed
on those older components.  Also, I would only do that if I know I won't
ever add to that rig.  I usually aim for half load or even a little
less.  I almost always end up adding something or upgrading something
before I retire a system. 



 On my current P/S, it is a 650 watt unit.  According to my UPS, my entire
 computer system pulls about 150 watts idle and about 160 to 170 when
 compiling the crap out of something like GCC, Libreoffice etc.  Now that
 includes my monitor, router, modem and speakers.  If I were to guess, the
 puter itself only pulls around 100 to 120 watts.
 Getting OT here:
 Didn’t you say (waay back) that you run AMD? Because in that case those
 numbers don’t add up (they also don’t for a medium-range intel). 120 W @
 idle (which in itself is a lot) and then only 30-ish more for full CPU load?


I got those numbers from the UPS.  Just for giggles, I disconnected my
A/C, plugged the UPS into that plug and measured them with a clamp on
meter at the breaker box.  Doing the math, I got about the same numbers
as the UPS gives me.  The difference might run a night light, maybe. 
The most I have ever seen this system pull is about 200 watts.  I think
I was printing and doing some updates at the same time.  I remember
thinking about that being the biggest load I ever seen.   Oh, my A/C is
on a dedicated circuit.  Nothing else is on that line.  The plug the UPS
usually plugs into only has my TV and some lights on it. 

From the UPS and confirmed by a clamp on meter just in the past few
minutes. 

Idle:  146 watts
Load, well into a gcc compile with all four cores running at close to
100% and drive activity:  186 watts

Keep in mind, my A/C is off and it's warming up here.  If I listen
close, I can tell the fans are spinning a bit faster.  Of course, it's
hard to hear those huge fans.  That HAF-932 is quiet but still moves a
lot of air.


 My power supply has some overkill issues
 for sure.  I could likely easily use a 300 watt unit but would likely
 replace with a 400 watt since they are more available.  Technically, I
 could use a 200 watt if the power supply was a well built model.
 If only such models were actually available. The lowest value you can get in
 a reasonable-quality build is 300 W, which is far too much for silent, small
 home PCs for simple usess like office or media centre. Such mini systems
 barely reach 20 W. Even at full load they won’t get past 60 or 70 W. This is
 just at the start of the 80+ efficiency range wich begins at 20%.


That was my point.  Most P/Ss that are that size or smaller than that
are either old or junky made.  Basically, something I would not buy or
recommend.  Finding a quality P/S that is 350 or less would be
difficult.  I don't recall seeing any in a long while, not that I have
actually tried to find one tho. 

Keep in mind, I didn't build this system to be green.  When I first
built this thing, I figured it would pull at least double what it
actually does if not much more.  My old rig pulled about 400 watts I
think and it is nothing compared to the speed this rig has.  While
having more processing power, it sure doesn't use more energy. 

Dale

:-)  :-) 




Re: [gentoo-user] Gentoo on a Lenovo X1 Carbon (3rd gen)

2015-08-25 Thread Hinnerk van Bruinehsen
On Tue, Aug 25, 2015 at 06:39:12PM +0200, Ralf wrote:
 On 08/25/2015 03:35 PM, Alan McKinnon wrote:
 
 
  Grab the .config files from both running systems and diff them. Expect
  the output to be long but with care you can narrow down the important
  differences.
 I also had that idea. The problem is, that Arch uses almost _everything_
 as module. So it's hard to figure out the critical module...

Hello,

you can try lsmod to see which modules actually get loaded (possibly even
before and after successful suspend - just in case there is a difference).

On the other hand you could check the kernel versions of the working kernel and
the new one and try to downgrade your kernel if necessary: my t510 doesn't wake
up from suspend to ram (I never tried hiberation) since at least 4.1.3
(possibly 4.1.y) right now either - without any config changes.
I had to time to bisect/investigate, but it worked fine with 4.0.y.

WKR
Hinnerk




Re: [gentoo-user] keeping grub 1

2015-08-25 Thread Fernando Rodriguez
On Tuesday, August 25, 2015 9:01:48 PM Florian Gamböck wrote:
 Hi James!
 
 Am 25.08.2015 um 20:44 schrieb James:
  If I just unmerge grub and emerge grub-static, is that the
  best way to prevent grub-2 from ever being installed?
 
 If you want to keep your good old sys-boot/grub:0, just put exactly that 
 into your world file, including with the slot-version (the :0 at the 
 end). At least in the main portage tree, grub-2 uses slot 2, whereas 
 grub-1 stays in slot 0.
 
 Alternatively you could put something like =sys-boot/grub-2 or even 
 sys-boot/grub:2 into package.mask.
 
 HTH,
 --Flo

And since you can install both it may be a good idea to get legacy grub 
working before unmerging grub2. If something goes wrong you just need to 
chroot and run grub2-install (or whatever it's called).

The grub-static package is most useful for amd64 systems without a 32-bit 
ncurses. I believe it ships a prebuilt ncurses static library.

-- 
Fernando Rodriguez



Re: [gentoo-user] keeping grub 1

2015-08-25 Thread Alan McKinnon
On 25/08/2015 20:44, James wrote:
 Hello,
 
 
 So on one particular (openrc) system, I have no interest in grub-2
 or any other bootloaders. I see grub is both grub 1 and grub 2.
 
 If I just unmerge grub and emerge grub-static, is that the
 best way to prevent grub-2 from ever being installed?
 Other caveats to worry about?
 
 
 TIA,
 James
 
 


Add to package.mask:

sys-boot/grub:2

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




Re: [gentoo-user] Re: Epic list of total FAIL.

2015-08-25 Thread Frank Steinmetzger
On Sat, Aug 22, 2015 at 06:28:45PM -0500, Dale wrote:

 Alan Grimes wrote:
  The PSU is an Antec EarthWatts 750.
 
  Biggest hoggs outside the motherboard are the, um, er, well [nvidia 980
  gpu] and an aging Western Digital Velociraptor boot drive. There is also
  a 3TB drive for all my p***, er kerbals   ( Kerbal Space Program ) .

 It just means your P/S is running at half power most of the time.

Which may be a good idea, since then it’d be running at optimum efficiency.

 On my current P/S, it is a 650 watt unit.  According to my UPS, my entire
 computer system pulls about 150 watts idle and about 160 to 170 when
 compiling the crap out of something like GCC, Libreoffice etc.  Now that
 includes my monitor, router, modem and speakers.  If I were to guess, the
 puter itself only pulls around 100 to 120 watts.

Getting OT here:
Didn’t you say (waay back) that you run AMD? Because in that case those
numbers don’t add up (they also don’t for a medium-range intel). 120 W @
idle (which in itself is a lot) and then only 30-ish more for full CPU load?

 My power supply has some overkill issues
 for sure.  I could likely easily use a 300 watt unit but would likely
 replace with a 400 watt since they are more available.  Technically, I
 could use a 200 watt if the power supply was a well built model.

If only such models were actually available. The lowest value you can get in
a reasonable-quality build is 300 W, which is far too much for silent, small
home PCs for simple usess like office or media centre. Such mini systems
barely reach 20 W. Even at full load they won’t get past 60 or 70 W. This is
just at the start of the 80+ efficiency range wich begins at 20%.

-- 
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me on any social network.

The problem with Perl jokes is that only the teller understands them.



[gentoo-user] Re: keeping grub 1

2015-08-25 Thread James
Neil Bothwick neil at digimed.co.uk writes:


  If I just unmerge grub and emerge grub-static, is that the
  best way to prevent grub-2 from ever being installed?
  Other caveats to worry about?


OK, so before anyone responded, I just masked the relevant
versions of grub2 in package.mask.


=sys-boot/grub-2.02_beta2-r7
=sys-boot/grub-2.02_beta2-r3
=sys-boot/grub-2.00_p5107-r2

 emerge -n sys-boot/grub:0 and make sure no other grub entries appear in
  at world


I added the generic grub2 to the package.mask

sys-boot/grub:2 

It's all good now. I'm ignoring grub-static.
grub-0.97.r14 seems fine.


thx (everyone),
James






Re: [gentoo-user] Gentoo on a Lenovo X1 Carbon (3rd gen)

2015-08-25 Thread Alec Ten Harmsel
On Tue, Aug 25, 2015 at 02:56:10PM +0200, Ralf wrote:
 Hi folks,
 
 i just got my brand new Lenovo X1 Carbon and trying to get Gentoo
 running on it.
 
 I have a big problem with my kernel:
 
 It doesn't come back from standby.
 After closing the lid, the standby LED starts breathing, opening the lid
 doesn't change anything, even pressing the power button does not wake up
 the system. The only option is to reset the system by holding down the
 power button. Journalctl doesn't say anything except of System reboot
 after the Standby message:
 
 ralf@omega:~$ sudo journalctl | grep -i lid closed -A
 10
   
 130
 Aug 23 19:12:20 omega systemd-logind[2075]: Lid closed.
 Aug 23 19:12:20 omega systemd-logind[2075]: Suspending...
 Aug 23 19:12:20 omega systemd[1]: Reached target Sleep.
 Aug 23 19:12:20 omega systemd[1]: Starting Suspend...
 Aug 23 19:12:20 omega systemd-sleep[2175]: Suspending system...
 -- Reboot --
 ..
 
 So I tried installing Arch linux (same kernel version, 4.1.6). Arch
 wakes up without any problems. As a try and quick fixI copied the Arch
 Kernel+Modules to my Gentoo system and it works fine, which means to me
 that I probably have a misconfigured kernel.
 But that's not the Gentoo way, I'd like to compile the kernel on my own.

Cool, at least it is supported. I know someone with that got a brand new
Lenovo about a year ago and had loads of issues with it, even with the
bleeding edge kernels in Arch.

 Does anyone know what I might be missing in my kernel config?
 Or does anyone also have a X1 Carbon 3rd generation and would like to
 share the .config with me?

Do you have SUSPEND=y (just checking)? Other things that I can
see related to suspend are SUSPEND_FREEZER, ACPI_SLEEP,
APM_IGNORE_USER_SUSPEND, and a bunch of Thinkpad/Lenovo related options.
I do not have suspend enabled on my laptop, so take this with a grain of
salt.

If you want to search various kernel options, you can run `make
menuconfig` in the source directory and use '/' (forward slash) to
search just like you're in `less'.

Alec



Re: [gentoo-user] Re: emerge world looking grim

2015-08-25 Thread Jeremi Piotrowski
On Wed, Aug 26, 2015 at 12:10 AM, Harry Putnam rea...@newsguy.com wrote:
 The only thing I can say on my own behalf is that there was once a
 time when it wasn't so far fetched to start emerge -vC 'ing stuff.

Many thing's can be removed with `emerge -C` and recovered from, but I doubt
unmerging packages in @system was ever a well supported operation...



Re: [gentoo-user] about online database of files per pkg

2015-08-25 Thread Neil Bothwick
On Wed, 26 Aug 2015 00:26:20 +0200, Alan McKinnon wrote:

  Can anyong direct me to a database for gentoo where one can find
  out which tools/files go with which pkg.

If you mean for installed packages; qlist shows what a package installed,
qfile shows which package installed a file. Both are part of
portage-utils.

If you want the same for uninstalled packages, what Alan said...

 As far as I know, there's no such thing. On Ubuntu when you install
 firefox, you get an exact list of files that is the same for everyone.
 On Gentoo when you install firefox, the list of files you get depends on
 USE and whether the dev did any tweaks to the ebuild today.
 
 There's been some efforts at making such a database, for example
 http://www.portagefilelist.de
 but that doesn't seem to work anymore. Maybe another project has picked
 up the ball but I don't know of any.

I use packages.debian.org. Once I know the Debian package name, it is
usually trivial to find the equivalent ebuild.


-- 
Neil Bothwick

Do Roman paramedics refer to IV's as 4's?


pgpqgTznR6dwf.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] about online database of files per pkg

2015-08-25 Thread Dale
Alan McKinnon wrote:
 On 26/08/2015 00:13, Harry Putnam wrote:
 Not doing too well with google on this...

 Can anyong direct me to a database for gentoo where one can find
 out which tools/files go with which pkg.



 As far as I know, there's no such thing. On Ubuntu when you install
 firefox, you get an exact list of files that is the same for everyone.
 On Gentoo when you install firefox, the list of files you get depends on
 USE and whether the dev did any tweaks to the ebuild today.

 There's been some efforts at making such a database, for example
 http://www.portagefilelist.de
 but that doesn't seem to work anymore. Maybe another project has picked
 up the ball but I don't know of any.

 This is not such a big problem as it might appear. If you are familiar
 with the Gentoo base system it's usually obvious what package will give
 you the file. The exception is basic utilities like cut and head and
 tail. They are not tin their own package but in a big utility one, maybe
 it's coreutils maybe it's util-linux. I avoid the problem by always
 installing both :-)

 Fo9r the rare case where you really can't figure it out, you can always
 ask here for someone with the file to equery it and find where it came from.




I use that site, I also run the program that uploads that info, but I to
find it not always helpful.  For Gentoo, there is just to much that can
change from one system to another based on settings/configs.  I'm not
aware of anyone else trying to do this.  Sadly. 

On those occasions where someone asks what belongs to something, I
always do a search here and if I have the info, I reply with it.  It's
likely about the easiest help a person can provide. 

Dale

:-)  :-) 



Re: [gentoo-user] keeping grub 1

2015-08-25 Thread Neil Bothwick
On Tue, 25 Aug 2015 18:44:17 + (UTC), James wrote:

 If I just unmerge grub and emerge grub-static, is that the
 best way to prevent grub-2 from ever being installed?
 Other caveats to worry about?

emerge -n sys-boot/grub:0 and make sure no other grub entries appear in
@world


-- 
Neil Bothwick

Bookmark - A means of returning to where you got lost last time.


pgphsYTruSTPL.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Filthy oscilloscope picture! =P

2015-08-25 Thread Neil Bothwick
On Sat, 22 Aug 2015 15:19:50 -0400, Alan Grimes wrote:

 I had to use my windows 7 machine to get the photo off my camera because
 digikam does not compile. =|

What's wrong with putting the camera in mass storage mode, or putting
it's memory card into your computer?

Compiling DigiKam to copy one file brings new meaning to overkill.

 
-- 
Neil Bothwick

Geordi, show these children the antimatter - Picard


pgpiKgeejj1yl.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Filthy oscilloscope picture! =P

2015-08-25 Thread Alan McKinnon
On 25/08/2015 23:33, Neil Bothwick wrote:
 On Sat, 22 Aug 2015 15:19:50 -0400, Alan Grimes wrote:
 
 I had to use my windows 7 machine to get the photo off my camera because
 digikam does not compile. =|
 
 What's wrong with putting the camera in mass storage mode, or putting
 it's memory card into your computer?
 
 Compiling DigiKam to copy one file brings new meaning to overkill.
 
  
 


I believe that honour goes to running wubi under wine on an Ubuntu guest
VM in VBox/VMWare/KVM, running on an Ubuntu host.

What do you get when you make it through that labyrinth? Why, it
installs Ubuntu of course!

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




[gentoo-user] Gentoo on a Lenovo X1 Carbon (3rd gen)

2015-08-25 Thread Ralf
Hi folks,

i just got my brand new Lenovo X1 Carbon and trying to get Gentoo
running on it.

Beside some really big issues (HiDPI display, 2048x1152 resolution on a
14 display really sucks on linux, xrandr scaling is horrible, no
scaling is damn too small to read, missing touch support in most
applications, ...) I have a big problem with my kernel:

It doesn't come back from standby.
After closing the lid, the standby LED starts breathing, opening the lid
doesn't change anything, even pressing the power button does not wake up
the system. The only option is to reset the system by holding down the
power button. Journalctl doesn't say anything except of System reboot
after the Standby message:

ralf@omega:~$ sudo journalctl | grep -i lid closed -A
10  

130
Aug 23 19:12:20 omega systemd-logind[2075]: Lid closed.
Aug 23 19:12:20 omega systemd-logind[2075]: Suspending...
Aug 23 19:12:20 omega systemd[1]: Reached target Sleep.
Aug 23 19:12:20 omega systemd[1]: Starting Suspend...
Aug 23 19:12:20 omega systemd-sleep[2175]: Suspending system...
-- Reboot --
..

So I tried installing Arch linux (same kernel version, 4.1.6). Arch
wakes up without any problems. As a try and quick fixI copied the Arch
Kernel+Modules to my Gentoo system and it works fine, which means to me
that I probably have a misconfigured kernel.
But that's not the Gentoo way, I'd like to compile the kernel on my own.

Does anyone know what I might be missing in my kernel config?
Or does anyone also have a X1 Carbon 3rd generation and would like to
share the .config with me?


Anything helps!

Cheers
  Ralf


Re: [gentoo-user] Gentoo on a Lenovo X1 Carbon (3rd gen)

2015-08-25 Thread Alan McKinnon
On 25/08/2015 14:56, Ralf wrote:
 Hi folks,
 
 i just got my brand new Lenovo X1 Carbon and trying to get Gentoo
 running on it.
 
 Beside some really big issues (HiDPI display, 2048x1152 resolution on a
 14 display really sucks on linux, xrandr scaling is horrible, no
 scaling is damn too small to read, missing touch support in most
 applications, ...) I have a big problem with my kernel:
 
 It doesn't come back from standby.
 After closing the lid, the standby LED starts breathing, opening the lid
 doesn't change anything, even pressing the power button does not wake up
 the system. The only option is to reset the system by holding down the
 power button. Journalctl doesn't say anything except of System reboot
 after the Standby message:
 
 ralf@omega:~$ sudo journalctl | grep -i lid closed -A
 10
   
 130
 Aug 23 19:12:20 omega systemd-logind[2075]: Lid closed.
 Aug 23 19:12:20 omega systemd-logind[2075]: Suspending...
 Aug 23 19:12:20 omega systemd[1]: Reached target Sleep.
 Aug 23 19:12:20 omega systemd[1]: Starting Suspend...
 Aug 23 19:12:20 omega systemd-sleep[2175]: Suspending system...
 -- Reboot --
 ..
 
 So I tried installing Arch linux (same kernel version, 4.1.6). Arch
 wakes up without any problems. As a try and quick fixI copied the Arch
 Kernel+Modules to my Gentoo system and it works fine, which means to me
 that I probably have a misconfigured kernel.
 But that's not the Gentoo way, I'd like to compile the kernel on my own.
 
 Does anyone know what I might be missing in my kernel config?
 Or does anyone also have a X1 Carbon 3rd generation and would like to
 share the .config with me?



Grab the .config files from both running systems and diff them. Expect
the output to be long but with care you can narrow down the important
differences.



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




Re: [gentoo-user] Gentoo on a Lenovo X1 Carbon (3rd gen)

2015-08-25 Thread Jeremi Piotrowski
I have a T440s and would expect the two to be quite similar from an ACPI
point of view, so let's see if I can help.

On Tue, 25 Aug 2015, Ralf wrote:

 It doesn't come back from standby.
 After closing the lid, the standby LED starts breathing, opening the lid
 doesn't change anything, even pressing the power button does not wake up
 the system. The only option is to reset the system by holding down the
 power button. 

This might be a long-shot but could you check

cat /proc/acpi/wakeup

The lid-wakeup action can be toggled there. I also have a SLPB device in
that file, which could map to the power button in some cases?


 As a try and quick fixI copied the Arch Kernel+Modules to my Gentoo
 system and it works fine, which means to me that I probably have a
 misconfigured kernel.  But that's not the Gentoo way, I'd like to
 compile the kernel on my own.

You could try diffing your config with the arch kernel config. Should be
present in /boot. Then look for suspicious differences, it's not as hard
as it seems, I've done it with the fedora kernel to solve problems.


 Does anyone know what I might be missing in my kernel config?

Try my config (attached), I don't know how it compares to the arch one but
suspend/resume works correctly here. It may be easier to pinpoint the cause
with it. You'll have to enable systemd.#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.1.5-gentoo Kernel Configuration
#

#
# Gentoo Linux
#
CONFIG_GENTOO_LINUX=y
CONFIG_GENTOO_LINUX_UDEV=y

#
# Support for init systems, system and service managers
#
CONFIG_GENTOO_LINUX_INIT_SCRIPT=y
# CONFIG_GENTOO_LINUX_INIT_SYSTEMD is not set
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_PERF_EVENTS_INTEL_UNCORE=y
CONFIG_OUTPUT_FORMAT=elf64-x86-64
CONFIG_ARCH_DEFCONFIG=arch/x86/configs/x86_64_defconfig
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_HAVE_LATENCYTOP_SUPPORT=y
CONFIG_MMU=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_NEED_SG_DMA_LENGTH=y
CONFIG_GENERIC_ISA_DMA=y
CONFIG_GENERIC_BUG=y
CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_ARCH_HAS_CPU_RELAX=y
CONFIG_ARCH_HAS_CACHE_LINE_SIZE=y
CONFIG_HAVE_SETUP_PER_CPU_AREA=y
CONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=y
CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=y
CONFIG_ARCH_HIBERNATION_POSSIBLE=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
CONFIG_ZONE_DMA32=y
CONFIG_AUDIT_ARCH=y
CONFIG_ARCH_SUPPORTS_OPTIMIZED_INLINING=y
CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
CONFIG_HAVE_INTEL_TXT=y
CONFIG_X86_64_SMP=y
CONFIG_X86_HT=y
CONFIG_ARCH_HWEIGHT_CFLAGS=-fcall-saved-rdi -fcall-saved-rsi -fcall-saved-rdx 
-fcall-saved-rcx -fcall-saved-r8 -fcall-saved-r9 -fcall-saved-r10 
-fcall-saved-r11
CONFIG_ARCH_SUPPORTS_UPROBES=y
CONFIG_FIX_EARLYCON_MEM=y
CONFIG_PGTABLE_LEVELS=4
CONFIG_DEFCONFIG_LIST=/lib/modules/$UNAME_RELEASE/.config
CONFIG_IRQ_WORK=y
CONFIG_BUILDTIME_EXTABLE_SORT=y

#
# General setup
#
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=
# CONFIG_COMPILE_TEST is not set
CONFIG_LOCALVERSION=
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_BZIP2=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_HAVE_KERNEL_LZ4=y
CONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set
CONFIG_DEFAULT_HOSTNAME=(none)
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
CONFIG_POSIX_MQUEUE=y
CONFIG_POSIX_MQUEUE_SYSCTL=y
CONFIG_CROSS_MEMORY_ATTACH=y
# CONFIG_FHANDLE is not set
CONFIG_USELIB=y
CONFIG_AUDIT=y
CONFIG_HAVE_ARCH_AUDITSYSCALL=y
CONFIG_AUDITSYSCALL=y
CONFIG_AUDIT_WATCH=y
CONFIG_AUDIT_TREE=y

#
# IRQ subsystem
#
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_IRQ_LEGACY_ALLOC_HWIRQ=y
CONFIG_GENERIC_PENDING_IRQ=y
CONFIG_IRQ_DOMAIN=y
CONFIG_GENERIC_MSI_IRQ=y
# CONFIG_IRQ_DOMAIN_DEBUG is not set
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_SPARSE_IRQ=y
CONFIG_CLOCKSOURCE_WATCHDOG=y
CONFIG_ARCH_CLOCKSOURCE_DATA=y
CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=y
CONFIG_GENERIC_TIME_VSYSCALL=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
CONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=y
CONFIG_GENERIC_CMOS_UPDATE=y

#
# Timers subsystem
#
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
CONFIG_NO_HZ_IDLE=y
# CONFIG_NO_HZ_FULL is not set
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y

#
# CPU/Task time and stats accounting
#
CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set
# CONFIG_IRQ_TIME_ACCOUNTING is not set
CONFIG_BSD_PROCESS_ACCT=y
# CONFIG_BSD_PROCESS_ACCT_V3 is not set
CONFIG_TASKSTATS=y
CONFIG_TASK_DELAY_ACCT=y
CONFIG_TASK_XACCT=y
CONFIG_TASK_IO_ACCOUNTING=y

#
# RCU Subsystem
#
CONFIG_TREE_RCU=y
CONFIG_SRCU=y
# CONFIG_TASKS_RCU is not set

[gentoo-user] Re: Anyone using xfce4 with compositing turned off?

2015-08-25 Thread walt
On Tue, 25 Aug 2015 21:10:28 +0200
waben...@gmail.com wrote:

Kernel driver in use: radeon

gigabytes snipped for readability

Hi wabe.  This whole radeon thing is so confusing I thought I'd mention
one more very confusing detail that I had to fix before I got the open-
source ati/radeon driver to work correctly:

First I tried starting my X session with no xorg.conf file at all.
That didn't work but of course I can't remember now what went wrong.
(That was already more than 24 hours ago :)

Then I generated an xorg.conf in the old way using 'Xorg -configure'.
That file didn't work right either.

Then I finally realized that the generated xorg.conf had, in the
Section Device section, this line:

Driver  radeon

But that's not what we want.  To use the open-source ati driver I
changed that line to read:

Driver  ati

And that's when everything finally started to work perfectly.

One more thing that confused me:  the xf86-video-ati package doesn't
install any kernel modules.  It installs only these two files:

/usr/lib64/xorg/modules/drivers/radeon_drv.so
/usr/lib64/xorg/modules/drivers/ati_drv.so

but to use those files you need that Driver ati line in xorg.conf.
sigh





Re: [gentoo-user] Re: keeping grub 1

2015-08-25 Thread Dale
James wrote:
 Neil Bothwick neil at digimed.co.uk writes:


 If I just unmerge grub and emerge grub-static, is that the
 best way to prevent grub-2 from ever being installed?
 Other caveats to worry about?

 OK, so before anyone responded, I just masked the relevant
 versions of grub2 in package.mask.


 =sys-boot/grub-2.02_beta2-r7
 =sys-boot/grub-2.02_beta2-r3
 =sys-boot/grub-2.00_p5107-r2

 emerge -n sys-boot/grub:0 and make sure no other grub entries appear in
  at world

 I added the generic grub2 to the package.mask

 sys-boot/grub:2 

 It's all good now. I'm ignoring grub-static.
 grub-0.97.r14 seems fine.


 thx (everyone),
 James


To be sure, I'd take the lowest version and put a = in front.  Based on
what I get here, it should look like this in the mask file:

=sys-boot/grub-2.00_p5107-r2 

That way you don't have to worry about the new version that may come
later, and if the old grub gets removed from the tree. 

Hope that helps.

Dale

:-)  :-)