Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#14761 - [netcfg] update breaks pm-suspend

Attached to Project: Arch Linux
Opened by Jori Hardman (jyro215) - Tuesday, 19 May 2009, 08:32 GMT
Last edited by James Rayner (iphitus) - Saturday, 27 June 2009, 01:46 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To James Rayner (iphitus)
Andrea Scarpino (BaSh)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

The newest update of netcfg in testing (2.2.0b1-1) breaks pm-suspend. Removing 11netcfg from /usr/lib/pm-utils/sleep.d allows pm-suspend to function normally.
This task depends upon

Closed by  James Rayner (iphitus)
Saturday, 27 June 2009, 01:46 GMT
Reason for closing:  Fixed
Comment by Andrea Scarpino (BaSh) - Tuesday, 19 May 2009, 15:10 GMT
Hi, try this. should work.
   11netcfg (0.3 KiB)
Comment by Thomas Haider (gothmog.todi) - Tuesday, 19 May 2009, 15:26 GMT
tried the script from BaSh, but it didn't work for me
Comment by Andrea Scarpino (BaSh) - Tuesday, 19 May 2009, 15:55 GMT
try this
Comment by Andrea Scarpino (BaSh) - Tuesday, 19 May 2009, 16:59 GMT
I applied a different patch to git
Comment by Jori Hardman (jyro215) - Tuesday, 19 May 2009, 18:33 GMT
The patch doesn't work for me.
Comment by Andrea Scarpino (BaSh) - Tuesday, 19 May 2009, 18:35 GMT
the patch which I attached is different from which I applied to -git.
What did you try?
Comment by Jori Hardman (jyro215) - Tuesday, 19 May 2009, 18:39 GMT
I tried the patch posted here. How do I get the git patch?
Comment by Andrea Scarpino (BaSh) - Tuesday, 19 May 2009, 18:43 GMT
here
Comment by Jori Hardman (jyro215) - Tuesday, 19 May 2009, 19:19 GMT
Just tried it out with the original 11netcfg and the one posted above, with the same result. pm-utils still doesn't suspend correctly until 11netcfg is removed.
Comment by Andrea Scarpino (BaSh) - Tuesday, 19 May 2009, 19:33 GMT
ok the patch who I applied is wrong...please try this patch for the last time :)
you don't need my 11netcfg script
Comment by Jori Hardman (jyro215) - Tuesday, 19 May 2009, 19:48 GMT
Still a no go sadly :( Which 11netcfg should I be using; the one that comes with pm-utils or the one above?
Comment by Andrea Scarpino (BaSh) - Tuesday, 19 May 2009, 19:51 GMT
isn't important which you are using. they are similar

with the last patch works here in suspend and resume.
look in /var/log/pm-suspend.log at the line
/usr/lib/pm-utils/sleep.d/11netcfg suspend suspend:
Comment by Jori Hardman (jyro215) - Tuesday, 19 May 2009, 21:16 GMT
Here's what I get:

/usr/lib/pm-utils/sleep.d/11netcfg suspend suspend: cp: omitting directory `/var/run/network//profiles/'
Returned exit code 1.
Tue May 19 16:14:30 CDT 2009: Inhibit found, will not perform suspend
Comment by Andrea Scarpino (BaSh) - Tuesday, 19 May 2009, 21:20 GMT
uhm...the last patch (http://bugs.archlinux.org/task/14761?getfile=3511) should fix that
Comment by Jori Hardman (jyro215) - Tuesday, 19 May 2009, 21:34 GMT
I don't know what's up then. I applied the patch and I'm using the 11netcfg posted above. I'll post my network file to make sure everything patched correctly.
Comment by Andrea Scarpino (BaSh) - Tuesday, 19 May 2009, 21:40 GMT
your file is right.
please try this in console:
for prof in "$(find /var/run/network/profiles/ -maxdepth 1 -type f -printf '%f\n')"; do echo $prof; done
what do you get?
Comment by Jori Hardman (jyro215) - Tuesday, 19 May 2009, 21:48 GMT
I get nothing... My profiles folder is empty. What is supposed to be there?
Comment by Andrea Scarpino (BaSh) - Tuesday, 19 May 2009, 21:52 GMT
the profile which you are connected.
so, reconnect to your network and try pm-suspend
Comment by Jori Hardman (jyro215) - Tuesday, 19 May 2009, 21:53 GMT
you know what... I don't even use netcfg. I use wicd for wireless management.
Comment by Jori Hardman (jyro215) - Tuesday, 19 May 2009, 21:54 GMT
but that being said, why is pm-utils using that hook if the network daemon isn't even running?
Comment by Jori Hardman (jyro215) - Tuesday, 19 May 2009, 22:08 GMT
Apparently wicd requires the network daemon to be running, but it manages its own profiles. This means that for people using wicd, the script will still fail, because there may not be any netcfg profiles.
Comment by Andrea Scarpino (BaSh) - Tuesday, 19 May 2009, 22:14 GMT
yes I know, in fact this is a netcfg issue.
I thought you was using netcfg so I never try to start pm-suspend without a netcfg connection

we will fix this ASAP but I want to talk with James first.
Comment by James Rayner (iphitus) - Wednesday, 20 May 2009, 06:44 GMT
I committed something earlier today that will fix this. I experienced this myself, but didnt notice it due to getting a new computer...

I'll put a release out when time allows... until then use: /usr/lib/network/network: http://projects.archlinux.org/?p=netcfg.git;a=blob_plain;f=src/network;hb=HEAD

A change does need to be made to 11netcfg also, as presently it always runs, even if no profiles are active. A simple "if no profiles active -> dont run" should be enough.
Comment by Alois Nespor (anespor) - Tuesday, 26 May 2009, 12:03 GMT
I haved same problem, i tested netcfg from git and suspend works, thanks for fixed this bug

Loading...