Re: [arch-general] makepkg devel_check svn issue

2010-08-23 Thread Andrea Fagiani

 On 08/23/2010 12:16 PM, Dan McGee wrote:

On Mon, Aug 23, 2010 at 3:37 AM, Andrea Fagiani  wrote:

  Hello,

A little background :
when updating a svn package with makepkg, svn info gets called (in the
devel_check function) and then the "Last Changed Rev" extracted from its
output and $pkgver updated accordingly.

However, while compiling stjerm-svn [1] (which I maintain in the AUR, btw) I
end up with a package that has pkgver=256 , but the actual revision checked
out by svn is 262.
I suspect it may be due to the fact that rev 257 created a new branch (you
can find the repository here) [2].

This could be easily fixed by considering the "Revision" value (instead of
"Last Changed Rev") in the svn info output.

Question is, is this the desired behavior or did I just stumble into a bug
(and should, therefore, report it) ?

If we used the checked out revision, every change in any
branch/directory of a repository would cause the version to be bumped
which is less than ideal. Using the "Last Changed Rev" value should be
a unique identifier of a revision that is not as volatile.

-Dan


Ok, thanks for the clarification. I've sorted it out in the PKGBUILD.

Andrea


[arch-general] makepkg devel_check svn issue

2010-08-23 Thread Andrea Fagiani

 Hello,

A little background :
when updating a svn package with makepkg, svn info gets called (in the 
devel_check function) and then the "Last Changed Rev" extracted from its 
output and $pkgver updated accordingly.


However, while compiling stjerm-svn [1] (which I maintain in the AUR, 
btw) I end up with a package that has pkgver=256 , but the actual 
revision checked out by svn is 262.
I suspect it may be due to the fact that rev 257 created a new branch 
(you can find the repository here) [2].


This could be easily fixed by considering the "Revision" value (instead 
of "Last Changed Rev") in the svn info output.


Question is, is this the desired behavior or did I just stumble into a 
bug (and should, therefore, report it) ?


Andrea

[1] http://aur.archlinux.org/packages.php?ID=27759
[2] https://code.google.com/p/stjerm-terminal/source/checkout


Re: [arch-general] powertop vs archlinux vs ubuntu

2010-02-22 Thread Andrea Fagiani

On 02/22/2010 09:04 AM, Stefano Z. wrote:

no, my dual celeron su2300 dosen't support speedstep, it stay fixed to 1.2ghz
but i have found the problem, i think this problem have to do with KMS...
I have istalled kernel26 2.6.31.6-1 and the problem disappered but obviously
this is not the solution i want ;-)
If i install 2.6.32+ kernel the problem reappear.
Another thing that happens is that the cpu(s) Temperature with kernels
   

2.6.31 stay
 

about on 53+C while with kernel<2.6.32 stays on 42C...



On Mon, Feb 22, 2010 at 9:43 AM, Andrea Fagiani  wrote:
   

On 02/22/2010 04:53 AM, Brendan Long wrote:
 

On 02/21/2010 04:55 PM, Xavier Chantry wrote:

   

On Mon, Feb 22, 2010 at 12:42 AM, Stefano Z.
  wrote:


 

hi

i've bought a new notebook (hp pavilion dm1-1150sl) and installed
archlinux.
i have see a strange thing with powertop, i'm running the vanilla arch
kernel26,
and i have see this behaviour:
CnAvg residency   P-states (frequencies)
C0 (cpu occupata)  (31,6%)
C00,0ms ( 0,0%)
C1 mwait  0,1ms ( 0,7%)
C4 mwait  0,0ms (67,8%)
Wakeups-from-idle per second : 31483,5  interval: 10,0s
---
as you can see, i have a LOT of wakeups per seconds very low c1 states
lot of c0 and c4 states,
a wattmeter tell me that archlinux consume about 25/26watt
Then i have boot a live ubuntu distro and see this:
Cnpermanenza mediaP-state (frequenze)
C0 (cpu occupata)  ( 0,6%)
polling   0,0 ms ( 0,0%)
C1 mwait 26,7 ms (68,6%)
C4 mwait  1,2 ms (30,8%)
Wakeup-da-idle al secondo: 281,3intervallo: 15,0s
---
as you can see  the wakeups are a LOT lower than on arch and we have
lot of c1 and c4 state,
power consumption is about 20W, the same that i have with win7 (about
18/20w).
For meaning about cX state see here:
http://www.lesswatts.org/projects/powertop/powertop.php

thanks!



   

You didn't give enough information so we will need to check the basis :
- which cpufreq driver and governor are you using in both cases (check
cpufreq-info)
- what processes does powertop show as causes for wakeups ?
- what processes does top show in term of cpu usage ?

Here is what I got in the last few minutes when i was writing this :
C4 mwait  3.4ms (92.5%)  800 Mhz98.0%
Wakeups-from-idle per second : 279.4interval: 10.0s

I have a core 2 duo with acpi-cpufreq loaded and conservative governor.
$ grep cpufreq /etc/rc.conf
MODULES=(acpi-cpufreq)
DAEMONS=(syslog-ng net-profiles crond dbus hal alsa cpufreq
storage-fixup)
$ grep governor /etc/conf.d/cpufreq
# valid governors:
governor="conservative"


 

They may just not have cpu-freq-utils installed maybe? I'm using
laptop-mode-tools with compiz and GNOME running (but not doing anything)
and it's saying 99.2% C4, 0.8% C0. This is with another Core2 and
laptop-mode is set to use the powersave governor on battery (which is
how I tested). When I plug it in, it jumps up to 25%, but I don't really
care how active the processor is when it's on battery.


   

Be sure to have cpu-freq-utils installed, as well as loading the right
modules (acpi-cpufreq, cpufreq_ondemand, if you plan on using the same
governor as ubuntu does), and add `cpufreq` to your DAEMONS array in
rc.conf.
On my system, with laptop-mode-tools the powertop output is very similar to
what Brendan said. Also, the 31k+ wakeups definitely mean there's some issue
on your config.

 
   
If you think it's KMS causing problems, try adding `nomodeset` to your 
kernel boot line and see what happens.


Re: [arch-general] powertop vs archlinux vs ubuntu

2010-02-21 Thread Andrea Fagiani

On 02/22/2010 04:53 AM, Brendan Long wrote:

On 02/21/2010 04:55 PM, Xavier Chantry wrote:
   

On Mon, Feb 22, 2010 at 12:42 AM, Stefano Z.  wrote:

 

hi

i've bought a new notebook (hp pavilion dm1-1150sl) and installed
archlinux.
i have see a strange thing with powertop, i'm running the vanilla arch kernel26,
and i have see this behaviour:
CnAvg residency   P-states (frequencies)
C0 (cpu occupata)  (31,6%)
C00,0ms ( 0,0%)
C1 mwait  0,1ms ( 0,7%)
C4 mwait  0,0ms (67,8%)
Wakeups-from-idle per second : 31483,5  interval: 10,0s
---
as you can see, i have a LOT of wakeups per seconds very low c1 states
lot of c0 and c4 states,
a wattmeter tell me that archlinux consume about 25/26watt
Then i have boot a live ubuntu distro and see this:
Cnpermanenza mediaP-state (frequenze)
C0 (cpu occupata)  ( 0,6%)
polling   0,0 ms ( 0,0%)
C1 mwait 26,7 ms (68,6%)
C4 mwait  1,2 ms (30,8%)
Wakeup-da-idle al secondo: 281,3intervallo: 15,0s
---
as you can see  the wakeups are a LOT lower than on arch and we have
lot of c1 and c4 state,
power consumption is about 20W, the same that i have with win7 (about 18/20w).
For meaning about cX state see here:
http://www.lesswatts.org/projects/powertop/powertop.php

thanks!


   

You didn't give enough information so we will need to check the basis :
- which cpufreq driver and governor are you using in both cases (check
cpufreq-info)
- what processes does powertop show as causes for wakeups ?
- what processes does top show in term of cpu usage ?

Here is what I got in the last few minutes when i was writing this :
C4 mwait  3.4ms (92.5%)  800 Mhz98.0%
Wakeups-from-idle per second : 279.4interval: 10.0s

I have a core 2 duo with acpi-cpufreq loaded and conservative governor.
$ grep cpufreq /etc/rc.conf
MODULES=(acpi-cpufreq)
DAEMONS=(syslog-ng net-profiles crond dbus hal alsa cpufreq storage-fixup)
$ grep governor /etc/conf.d/cpufreq
# valid governors:
governor="conservative"

 

They may just not have cpu-freq-utils installed maybe? I'm using
laptop-mode-tools with compiz and GNOME running (but not doing anything)
and it's saying 99.2% C4, 0.8% C0. This is with another Core2 and
laptop-mode is set to use the powersave governor on battery (which is
how I tested). When I plug it in, it jumps up to 25%, but I don't really
care how active the processor is when it's on battery.

   
Be sure to have cpu-freq-utils installed, as well as loading the right 
modules (acpi-cpufreq, cpufreq_ondemand, if you plan on using the same 
governor as ubuntu does), and add `cpufreq` to your DAEMONS array in 
rc.conf.
On my system, with laptop-mode-tools the powertop output is very similar 
to what Brendan said. Also, the 31k+ wakeups definitely mean there's 
some issue on your config.


Re: [arch-general] Why taking so long?

2010-01-30 Thread Andrea Fagiani

On 01/30/2010 01:37 PM, Heiko Baums wrote:

Am Sat, 30 Jan 2010 13:11:26 +0100
schrieb Andrea Crotti:

   

Sometimes (only twice actually) I had to recompile the kernel with ice
support from aur.
Now compiling the kernel is not a short job, but it looks like it
really compiles EVERYTHING!

Maybe putting my .config somewhere it will not do it, how do you
manage it?
 

I guess this is the easiest way to compile your own kernel:

1. cp -R /var/abs/core/kernel26 /var/abs/local/kernel26-

2. Edit these variables in the PKGBUILD:
pkgbase (to your package name)
pkgname (copy the original one and replace kernel26* with
kernel26-*)

3. Add the patches you like to the PKGBUILD.

4. Remove the comments of these lines:
#make menuconfig # CLI menu for configuration (or the other options)
#msg "Stopping build"
#return 1

5. Run makepkg -g and replace the md5sums in the PKGBUILD.

6. Run makepkg and configure your kernel. (You don't need to change
CONFIG_LOCALVERSION, this is done by the PKGBUILD automatically.)

7.
cd /var/abs/local/kernel26-/src/linux-
diff -u .config.old .config
cd ../..
Make the changes to the files config and config.x86_64 manually.

or

cd /var/abs/local/kernel26-
cp src/linux-/.config ./config
or
cp src/linux-/.config ./config.x86_64
(depending on your CPU)

8. Run makepkg -g and replace the md5sums in the PKGBUILD.

9. Edit the PKGBUILD and comment the lines from 4.

10. Run makepkg and install the built package.

11. Finished!

If you want to publish your kernel package in AUR then you
unfortunately need to revert the PKGBUILD from a split to a single
package.

Greetings,
Heiko

   
Or, you could just edit the kernel26-ice PKGBUILD and enable the 
/menuconfig/ variable so that it triggers menuconfig in the build() 
section, there you can either modify the configuration on the run or 
load an alternate config file; just be sure to save the edited config to 
/.conf/ig .


Andrea


Re: [arch-general] Little problems with arch

2010-01-29 Thread Andrea Fagiani

On 01/29/2010 11:59 PM, Andrea Crotti wrote:

I have a little dell 10 with archlinux.

Unfortunately the audio and 3d are not really working, I tried hard some
time ago but with no luck, anyway other problems are more annoying.

- time getting crazy
   Every time I reboot this little machine the date is set somehow randomly.
   Any idea of what could that be?

   Maybe the battery that should keep it up is not working (I think is an
   OS issue though)??

- screensaver

   I use xfce but I installed quite a lot of stuff from gnome, but I
   never asked for the stupid gnome-screensaver to start at every boot,
   and I don't find how to disable it.

   My daemons are only those:
--8<---cut here---start->8---
DAEMONS=(syslog-ng network netfs crond acpid sshd hal bluetooth alsa
rsyncd cpufreqd wicd cups fam)
--8<---cut here---end--->8---

- network devices with random name

   I had some troubles with the wireless card but then it worked smoothly
   with the proprietary "broadcom-wl" driver, the only problems is that
   sometimes

   eth0 = lan, eth1 = wireless and sometimes is the opposite
   and I don't understand why.
   This also happens with normal reboots.

- no packages to update

   This is quite strange, sometimes I do a "pacman -Suy" and I loop up to
   date, but if I change the first mirror just editing mirrorlist I'm not
   up to date anymore and it starts updating.

   What does that mean? Not all the mirrors are on sync?
   Could it be related somehow to my problem with the date (shouldn't be
   though)?


   

Hi Andrea,
1) time issue
check your /etc/rc.conf and make sure you have
HARDWARECLOCK="localtime"
and the correct TIMEZONE setting.

Also, if that is already ok, try deleting //var/lib/hwclock/adjtime/ , 
this fixed it for me.


2) about gnome-screensaver, I don't really know I've never had such 
problems with it, I'd try running /gnome-screensaver-preferences/ and 
disabling it from there though.


3) network intefaces issue
if that keeps up you could try adding udev rules for your devices:
create a new rules file, e.g. //etc/udev/rules.d/66-nic.rules/ , a 
possible set of rules would look like


KERNEL=="eth*", SYSFS{address}=="aa:bb:cc:dd:ee:ff", NAME="eth0"
KERNEL=="eth*", SYSFS{address}=="ff:ee:dd:cc:bb:aa", NAME="eth1"

where the address fields should match that of your network intefaces 
(you can use /ifconfig /to narrow that down).

That should pretty much do the trick.

4) mirrors
Yes, some mirrors may be out of sync, take a look at the Mirror Status 
 ;-)


Andrea


Re: [arch-general] Laptop reboots instead of resume from suspend

2010-01-29 Thread Andrea Fagiani

On 01/29/2010 09:46 PM, Dave Morgan wrote:

I'm using an Inspiron 1720, GeForce 8600M GT, Arch i686.  If I update to
any kernel after 2.6.31.6-1 then the laptop reboots from suspend or
hibernate.

According to pm-suspend.log the suspend was fine and there are n
problems in the other logs.  It just reboots.

Anyone else seen this, or any suggestions for a fix?

   
I've had the same problem with hibernation on my laptop, and solved by 
adding the option :


/resume=/dev/SWAPPARTITION/

to the linux line in my grub.cfg (that would be kernel line in menu.lst 
if you're using the old grub).

I didn't have problems with suspend though.

Might also want to try adding the /`resume/` hook to your 
mkinitcpio.conf and rebuild your initrd.


Andrea


Re: [arch-general] ndesk-dbus 0.6.0 bugfix

2010-01-29 Thread Andrea Fagiani

On 01/29/2010 05:54 PM, Angel Velásquez wrote:

On Fri, Jan 29, 2010 at 3:34 PM, Andrea Fagiani  wrote:
   

Bug #377672<https://bugs.launchpad.net/ndesk-dbus/+bug/377672>

I stumbled upon this while trying to suspend my laptop using Gnome-DO's
Gnome-session plugin. It may also cause problems with other C# apps.
There's a quick fix for this in the first post of the launchpad's bug report
:


--- ndesk-dbus-0.6.0.orig/src/TypeImplementer.cs2007-10-11
20:01:11.0 +
+++ ndesk-dbus-0.6.0/src/TypeImplementer.cs2010-01-29 18:11:32.0
+
@@ -34,7 +34,7 @@ namespace NDesk.DBus

 InitHack ();

-TypeBuilder typeB = modB.DefineType (declType.Name + "Proxy",
TypeAttributes.Class | TypeAttributes.Public, typeof (BusObject));
+TypeBuilder typeB = modB.DefineType (declType.FullName +
"Proxy", TypeAttributes.Class | TypeAttributes.Public, typeof (BusObject));

 Implement (typeB, declType);


Might want to add this quick fix to the package in extra.

 

Thanks for the patch Andrea,

I am posting this mail on the opened bug on the Arch Linux Bug Tracker [1].

Thanks for your contribution, next time try to see if the bug is
reported on the Arch Linux Bug Tracker [2] in order to have the things
better organized

[1] http://bugs.archlinux.org/task/17900
[2] http://bugs.archlinux.org



   

Thanks Angel,
I'll keep that in mind ;-) .


[arch-general] ndesk-dbus 0.6.0 bugfix

2010-01-29 Thread Andrea Fagiani

Bug #377672 

I stumbled upon this while trying to suspend my laptop using Gnome-DO's 
Gnome-session plugin. It may also cause problems with other C# apps.
There's a quick fix for this in the first post of the launchpad's bug 
report :



--- ndesk-dbus-0.6.0.orig/src/TypeImplementer.cs2007-10-11 
20:01:11.0 +
+++ ndesk-dbus-0.6.0/src/TypeImplementer.cs2010-01-29 
18:11:32.0 +

@@ -34,7 +34,7 @@ namespace NDesk.DBus

 InitHack ();

-TypeBuilder typeB = modB.DefineType (declType.Name + 
"Proxy", TypeAttributes.Class | TypeAttributes.Public, typeof (BusObject));
+TypeBuilder typeB = modB.DefineType (declType.FullName + 
"Proxy", TypeAttributes.Class | TypeAttributes.Public, typeof (BusObject));


 Implement (typeB, declType);


Might want to add this quick fix to the package in extra.


Re: [arch-general] First Time Arch w/ Gnome Installed

2010-01-26 Thread Andrea Fagiani

On 01/26/2010 07:26 PM, Damien Churchill wrote:

2010/1/26 Carlos Williams:
   

This is my 1st time ever installing Arch Linux with GDM / Gnome
desktop environment. I did not install 'gnome-extra' package because I
don't want all the useless applications. I prefer to only install what
I need. I am have been using an Ubuntu 10.4 workstations and got
everything working on my new Arch system. It is very fast even
installed the latest nVidia drivers from their site. My only issue I
have is the fonts look horrible. I did go to 'System>  Preferences>
Appearance>  Fonts tab' and set the fonts to 'Sub Pixel Smoothing' for
LCD's but I am missing the smoothness and glossiness (Anti Aliasing)
that Ubuntu had. My Arch fonts still look very rough and 1993'ish. I
don't know what I can do to make my Gnome / Desktop environment appear
more polished and cleaner. Do you guys have any suggestions?

Do I need a specific WM or special decorative package? I work a lot on
my workstation and need it to be pleasing to the eyes. The fonts I
have don't make my system look very appealing. I know it sounds stupid
but I really like my DE to be pleasing on my eyes since I use if for
hours at a time...

Thanks for any help!

 

If you open the Fonts tab in the Appearance preferences, and click
Details, another window opens that allows you to set the font hinting.
Ubuntu has it set to Slight by default so changing this might help how
the fonts look. Worth a try at least!

Damien

   
I suggest taking a look at the Font_Configuration 
 article in the 
Wiki, it's got a lot of useful tweaks. Also, I found myself very 
comfortable with the Cleartype packages, namely cairo-cleartype, 
freetype2-cleartype and libxft-cleartype (which you can find in AUR); 
they /do/ make arch a better visual experience!