Difference between revisions of "User talk:Hopspitfire"

From WebOS Internals
Jump to navigation Jump to search
(Fixed formatting.)
Line 302: Line 302:
  
 
Let me know what happens. -[[User:Hopspitfire|hopspitfire]] 03:16, 16 August 2009 (UTC)
 
Let me know what happens. -[[User:Hopspitfire|hopspitfire]] 03:16, 16 August 2009 (UTC)
<br><br>
 
  
dlbpre@castle:~$ sudo -s <br>
+
</pre></nowiki>
root@castle:/var/home/dlbpre# mount -o remount,rw / <br>
+
dlbpre@castle:~$ sudo -s  
root@castle:/var/home/dlbpre# rm /opt/src/patches/* <br>
+
root@castle:/var/home/dlbpre# mount -o remount,rw /  
root@castle:/var/home/dlbpre# ipkg-opt update <br>
+
root@castle:/var/home/dlbpre# rm /opt/src/patches/*
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable                                             /Packages.gz <br>
+
root@castle:/var/home/dlbpre# ipkg-opt update  
Inflating http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/P                                            ackages.gz <br>
+
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz  
Updated list of available packages in /opt/lib/ipkg/lists/cross <br>
+
Inflating http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz  
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/native/unstabl                                            e/Packages.gz <br>
+
Updated list of available packages in /opt/lib/ipkg/lists/cross
Inflating http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/native/unstable/                                             Packages.gz <br>
+
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/native/unstable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/native <br>
+
Inflating http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/native/unstable/Packages.gz
Downloading http://ipkg.nslu2-linux.org/feeds/optware/pre/cross/unstable/Package                                            s.gz <br>
+
Updated list of available packages in /opt/lib/ipkg/lists/native
Inflating http://ipkg.nslu2-linux.org/feeds/optware/pre/cross/unstable/Packages.                                             gz <br>
+
Downloading http://ipkg.nslu2-linux.org/feeds/optware/pre/cross/unstable/Packages.gz
Updated list of available packages in /opt/lib/ipkg/lists/kernel <br>
+
Inflating http://ipkg.nslu2-linux.org/feeds/optware/pre/cross/unstable/Packages.gz
Successfully terminated. <br>
+
Updated list of available packages in /opt/lib/ipkg/lists/kernel
root@castle:/var/home/dlbpre# ipkg-opt remove quilt perl libdb gdbm util-linux-n <br>
+
Successfully terminated.  
g e2fslibs ncursesw ncurses <br>
+
root@castle:/var/home/dlbpre# ipkg-opt remove quilt perl libdb gdbm util-linux-ng e2fslibs ncursesw ncurses  
Nothing to be done <br>
+
Nothing to be done  
Successfully terminated. <br>
+
Successfully terminated.  
Collected errors: <br>
+
Collected errors:  
Package ncurses is depended upon by packages: <br>
+
Package ncurses is depended upon by packages:
        psmisc <br>
+
psmisc  
These might cease to work if package ncurses is removed. <br>
+
These might cease to work if package ncurses is removed.  
  
You can force removal of this package with -force-depends. <br>
+
You can force removal of this package with -force-depends.  
You can force removal of this package and its dependents <br>
+
You can force removal of this package and its dependents  
with -force-removal-of-dependent-packages or -recursive <br>
+
with -force-removal-of-dependent-packages or -recursive  
or by setting option force_removal_of_dependent_packages <br>
+
or by setting option force_removal_of_dependent_packages in ipkg.conf.
in ipkg.conf. <br>
+
root@castle:/var/home/dlbpre# ipkg-opt install quilt-lite  
root@castle:/var/home/dlbpre# ipkg-opt install quilt-lite <br>
+
Package quilt-lite (0.48-5) installed in root is up to date.
Package quilt-lite (0.48-5) installed in root is up to date. <br>
+
Nothing to be done
Nothing to be done <br>
+
Successfully terminated.
Successfully terminated. <br>
+
root@castle:/var/home/dlbpre# sed -ire 's|^[\s#]*QUILT_PATCHES=.*|QUILT_PATCHES=
root@castle:/var/home/dlbpre# sed -ire 's|^[\s#]*QUILT_PATCHES=.*|QUILT_PATCHES= <br>
+
/opt/src/patches|' /opt/etc/quilt.quiltrc
/opt/src/patches|' /opt/etc/quilt.quiltrc <br>
+
root@castle:/var/home/dlbpre# cat /opt/etc/quilt.quiltrc | grep PATCHES=
root@castle:/var/home/dlbpre# cat /opt/etc/quilt.quiltrc | grep PATCHES= <br>
+
QUILT_PATCHES=/opt/src/patches
QUILT_PATCHES=/opt/src/patches <br>
+
root@castle:/var/home/dlbpre# quilt import /opt/src/modifications/luna/show-actual-battery-percent.patch
root@castle:/var/home/dlbpre# quilt import /opt/src/modifications/luna/show-actu <br>
+
Importing patch /opt/src/modifications/luna/show-actual-battery-percent.patch (stored as /opt/src/patches/show-actual-battery-percent.patch)  
al-battery-percent.patch <br>
+
root@castle:/var/home/dlbpre# quilt push -a
Importing patch /opt/src/modifications/luna/show-actual-battery-percent.patch (s                                            tored as /opt/src/patches/show-actual-battery-percent.patch) <br>
+
Applying patch /opt/src/patches/show-actual-battery-percent.patch  
root@castle:/var/home/dlbpre# quilt push -a <br>
+
can't find file to patch at input line 11  
Applying patch /opt/src/patches/show-actual-battery-percent.patch <br>
+
Perhaps you used the wrong -p or --strip option?  
can't find file to patch at input line 11 <br>
+
The text leading up to this was:
Perhaps you used the wrong -p or --strip option? <br>
+
--------------------------
The text leading up to this was: <br>
+
|show-actual-battery-percent
-------------------------- <br>
+
|
|show-actual-battery-percent <br>
+
|Tested-On: 1.1
| <br>
+
|
|Tested-On: 1.1 <br>
+
|//show actual battery percent in the system user interface.
| <br>
+
|//note: battery @ 100% will only charge on a new charge event or if power is <94%
|//show actual battery percent in the system user interface. <br>
+
|Index: /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
|//note: battery @ 100% will only charge on a new charge event or if power is <9                                            4% <br>
+
|===================================================================
|Index: /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js <br>
+
|--- .orig/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
|=================================================================== <br>
+
|+++ /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
|--- .orig/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js <br>
+
--------------------------  
|+++ /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js <br>
+
No file to patch.  Skipping patch.
-------------------------- <br>
+
3 out of 3 hunks ignored
No file to patch.  Skipping patch. <br>
+
Patch /opt/src/patches/show-actual-battery-percent.patch does not apply (with -f)
3 out of 3 hunks ignored <br>
+
 
Patch /opt/src/patches/show-actual-battery-percent.patch does not apply (enforce                                              with -f) <br>
+
</nowiki></pre>
  
 
there we go. [[User:Dlbpre|Dlbpre]]
 
there we go. [[User:Dlbpre|Dlbpre]]

Revision as of 04:49, 16 August 2009

Porting pages

Hey, welcome to the wiki. One thing: don't add your signature to pages you transfer over from the old wiki. This is a community effort, those pages will be edited by other people, and we want to try to keep a consistent look across pages. Thanks. —X1011 17:18, 20 July 2009 (UTC)

All instances of signature have been removed -hopspitfire

/ in page titles

If you can please do not use "/" in page titles. --Templarian 23:27, 20 July 2009 (UTC)

THANK YOU for your hard work on the wiki!

Please accept this "nobody knows the trouble I've seen" award as a token of our appreciation.

Drudgery.jpg

rboatright 02:11, 24 July 2009 (UTC)

Congrats on becoming an Editor --Templarian 13:16, 28 July 2009 (UTC)

Deletions

I just had a horrible thought.

All those deletions you're doing that are pages that only had you as an editor...

if you delete the redireccts, aren't you deleting the thing that the old-page on the old-wiki links to? so you have broken the redirect FROM the old-wiki?

and that means that if anyone had blog-pages or precentral posts that linked to those, THOSE are broken.

I've never understood what's wrong with lots of redirects. One of my patrol pages on wikipedia has 27 redirects that end up there. And that's a GOOD thing. :-)

rboatright 05:16, 31 July 2009 (UTC)


agreed; see WebOS Internals talk:Policies and guidelines#Proposed: RedirectsX1011 05:59, 31 July 2009 (UTC)

Sit tight guys, I'm fixing all the links from predev. hopspitfire 06:01, 31 July 2009 (UTC)

  • edit All broken links have been fixed on predev. Rick, thanks for bringing this up. hopspitfire 06:16, 31 July 2009 (UTC)

Support Section

Patch webOS Show Actual Battery Percentage

I am having difficulty importing and pushing this particular app. I was curious if you would assist me. I have the webos 1.1 update. I get to the place (look below) and then im stuck.

dlbpre@castle:~$ sudo su -
root@castle:/var/home/root# cd /
root@castle:/# mount -o remount,rw /
root@castle:/# quilt import Index: /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js

of course I checked the quilt series to make sure i imported it correctly and then I pushed it and rebooted the device. When it powers back on..no change...apparently i am missing something.

Sorry to ask you to "dumb it down" but i am a tyro (novice) to linux... :(

thanks for your help if you do decide to assist!!!!! :-D -Dlbpre


No problem at all. The first thing I'm noticing is that you're importing the wrong file, you'll want to import the '.patch' file. To accomplish this, you'll need to get the webos-internals modifications repo. Here:
sudo -s
mount -o remount,rw /
cd /opt/src
git clone git://gitorious.org/webos-internals/modifications.git

You'll need to make sure that quilt is configured correctly, type:

mkdir -p /opt/src/patches
sed -ire 's|^[\s#]*QUILT_PATCHES=.*|QUILT_PATCHES=/opt/src/patches|' /opt/etc/quilt.quiltrc

Make sure to remove the old series file before importing

rm /opt/src/patches/series
rm /opt/src/patches/bar-assistant.js

Then run:

quilt import /opt/src/modifications/luna/show-actual-battery-percent.patch
cd /
quilt push -a

Then reboot:

reboot

Let me know if it works. -hopspitfire 00:27, 16 August 2009 (UTC)



I get to here

root@castle:/# quilt import /opt/src/modifications/luna/show-actual
-battery-percent.patch
Patch quilt does not exist
root@castle:/#

I followed every direction to the "T". Copy and paste precisely what was listed.

Thanks for your assistance man (maybe lady). I really do appreciate the quick response.-Dlbpre


Hrmm, can you run this command and post the output:
find /opt/src

-hopspitfire 01:15, 16 August 2009 (UTC)


Here are the steps you applied to my previous question.


dlbpre@castle:~$ sudo -s
root@castle:/var/home/dlbpre# mount -o remount,rw /
root@castle:/var/home/dlbpre# cd /opt/src
root@castle:/opt/src# git clone git://gitorious.org/webos-internals/modification s.git
fatal: destination path 'modifications' already exists and is not an empty directory.
root@castle:/opt/src#
root@castle:/opt/src# mkdir -p /opt/src/patches
root@castle:/opt/src#
root@castle:/opt/src# sed -ire 's|^[\s#]*QUILT_PATCHES=.*|QUILT_PATCHES=/opt/src
/patches|' /opt/etc/quilt.quiltrc
root@castle:/opt/src# rm /opt/src/patches/series
rm: cannot remove '/opt/src/patches/series': No such file or directory
root@castle:/opt/src# rm /opt/src/patches/bar-assistant.js
rm: cannot remove '/opt/src/patches/bar-assistant.js': No such file or directory
root@castle:/opt/src# quilt import /opt/src/modifications/luna/show-actual-batte
ry-percent.patch
Importing patch /opt/src/patches/show-actual-battery-percent.patch
root@castle:/opt/src# cd /
root@castle:/# quilt push -a
File series fully applied, ends at patch /opt/src/patches/bar-assistant.js
root@castle:/# mount -o remount,ro /
root@castle:/# reboot
/bin/sh: reboot: not found




As requested.

root@castle:/# find /opt/src
/opt/src
/opt/src/patches
/opt/src/patches/show-actual-battery-percent.patch
/opt/src/patches/series
/opt/src/patches/default-to-month-view.patch
/opt/src/patches/capture_with_volume_keys.patch
/opt/src/modifications
/opt/src/modifications/amazonstore
/opt/src/modifications/amazonstore/amazon_evdo.patch
/opt/src/modifications/applauncher
/opt/src/modifications/applauncher/add-delete-pages-in-the-launcher.patch
/opt/src/modifications/camera
/opt/src/modifications/camera/capture_with_volume_keys.patch
/opt/src/modifications/install
/opt/src/modifications/clock
/opt/src/modifications/clock/hidden-clock.patch
/opt/src/modifications/messaging
/opt/src/modifications/messaging/messaging-sounds.patch
/opt/src/modifications/messaging/message-forwarding.patch
/opt/src/modifications/.git
/opt/src/modifications/.git/logs
/opt/src/modifications/.git/logs/HEAD
/opt/src/modifications/.git/logs/refs
/opt/src/modifications/.git/logs/refs/heads
/opt/src/modifications/.git/logs/refs/heads/master
/opt/src/modifications/.git/logs/refs/remotes
/opt/src/modifications/.git/logs/refs/remotes/origin
/opt/src/modifications/.git/logs/refs/remotes/origin/HEAD
/opt/src/modifications/.git/config
/opt/src/modifications/.git/hooks
/opt/src/modifications/.git/hooks/pre-rebase.sample
/opt/src/modifications/.git/hooks/prepare-commit-msg.sample
/opt/src/modifications/.git/hooks/pre-commit.sample
/opt/src/modifications/.git/hooks/post-receive.sample
/opt/src/modifications/.git/hooks/commit-msg.sample
/opt/src/modifications/.git/hooks/post-commit.sample
/opt/src/modifications/.git/hooks/pre-applypatch.sample
/opt/src/modifications/.git/hooks/applypatch-msg.sample
/opt/src/modifications/.git/hooks/update.sample
/opt/src/modifications/.git/hooks/post-update.sample
/opt/src/modifications/.git/objects
/opt/src/modifications/.git/objects/pack
/opt/src/modifications/.git/objects/pack/pack-d852f8e9c46d1d6fe4abb0714a5d469011a6db08.idx
/opt/src/modifications/.git/objects/pack/pack-d852f8e9c46d1d6fe4abb0714a5d469011a6db08.pack
/opt/src/modifications/.git/objects/info
/opt/src/modifications/.git/description
/opt/src/modifications/.git/packed-refs
/opt/src/modifications/.git/FETCH_HEAD
/opt/src/modifications/.git/branches
/opt/src/modifications/.git/ORIG_HEAD
/opt/src/modifications/.git/index
/opt/src/modifications/.git/info
/opt/src/modifications/.git/info/exclude
/opt/src/modifications/.git/HEAD
/opt/src/modifications/.git/refs
/opt/src/modifications/.git/refs/heads
/opt/src/modifications/.git/refs/heads/master
/opt/src/modifications/.git/refs/remotes
/opt/src/modifications/.git/refs/remotes/origin
/opt/src/modifications/.git/refs/remotes/origin/HEAD
/opt/src/modifications/.git/refs/tags
/opt/src/modifications/tasks
/opt/src/modifications/tasks/new-task-details.patch
/opt/src/modifications/email
/opt/src/modifications/email/enable-landscape-email.patch
/opt/src/modifications/email/prompt-for-ipk-installation.patch
/opt/src/modifications/phoneprefs
/opt/src/modifications/phoneprefs/roam-control.patch
/opt/src/modifications/phone
/opt/src/modifications/phone/phone-show-call-duration.sh
/opt/src/modifications/phone/phone-enable-roam-only.patch
/opt/src/modifications/soundsandalerts
/opt/src/modifications/soundsandalerts/message-tone-sounds-and-alerts.patch
/opt/src/modifications/musicplayer
/opt/src/modifications/musicplayer/bookmark.patch
/opt/src/modifications/calendar
/opt/src/modifications/calendar/default-to-month-view.patch
/opt/src/modifications/calendar/default-to-week-view.patch
/opt/src/modifications/screenlock
/opt/src/modifications/screenlock/longer_standby_times.patch
/opt/src/modifications/frameworks
/opt/src/modifications/frameworks/add-onscreen-keyboard.patch
/opt/src/modifications/luna
/opt/src/modifications/luna/disable-charging-alert-sound.patch
/opt/src/modifications/luna/quiet-powerd-messages.patch
/opt/src/modifications/luna/show-actual-battery-percent.patch
/opt/src/modifications/luna/powersave-cpu-scaling
/opt/src/modifications/luna/enable-dev-mode-icon.patch
/opt/src/modifications/luna/more_icons_per_row.patch
/opt/src/modifications/luna/powersave-smartreflex
/opt/src/modifications/README
/opt/src/modifications/browser
/opt/src/modifications/browser/enable-browser-downloads.patch

-Dlbpre


Ah ok, so it looks like you've successfully imported the patch. The problem is that it is still trying to run your previous file (bar-assistant.js, which is not a patch file):
root@castle:/# quilt push -a
File series fully applied, ends at patch /opt/src/patches/bar-assistant.js

Try this (be sure to copy and paste these, you don't want to accidently delete the wrong files):

mount -o remount,rw /
cd /
quilt pop -a
rm /opt/src/patches/*
quilt import /opt/src/modifications/luna/show-actual-battery-percent.patch
quilt push -a

To reboot the Pre, you can just press and hold <Orange-Button><Sym><R>. Let me know what happens.

Also, when you're done typing your comments, please type ~~~~ as that will insert your name and the time, like so -> hopspitfire 01:29, 16 August 2009 (UTC)


Here are the results:

root@castle:/var/home/dlbpre# mount -o remount,rw /
root@castle:/var/home/dlbpre# cd /
root@castle:/# quilt pop -a
Patch /opt/src/patches/bar-assistant.js needs to be refreshed first.
root@castle:/# rm /opt/src/patches/*
root@castle:/# quilt import /opt/src/modifications/luna/show-actual-battery-perc
ent.patch
Patch /opt/src/patches/show-actual-battery-percent.patch is applied
root@castle:/# quilt push -a
File series fully applied, ends at patch /opt/src/patches/bar-assistant.js
root@castle:/# mount -o remount,ro /

And the battery percentage has not decided to show yet. Dlbpre 02:01, 16 August 2009 (UTC)


Ok, somehow the series isn't being overwritten, which leads me to believe that it's using the wrong patches directory. Can you run this command and give me the output?
cat /opt/etc/quilt.quiltrc | grep PATCHES=

-hopspitfire 02:44, 16 August 2009 (UTC)

Nothing happens when I input that code. I did notice that you directed me to use "sudo -s"...instead of what i normally use "sudo su -". (forgive me if im an idiot and those two quotes are the same thing).

Dlbpre


OK, I figured out the problem. First, there are no dumb questions: 'sudo -s' makes you the root user while still keeping the shell and environment variables of your regular user, while 'sudo su -' makes you the root user and uses the root shell and environment variables.

The easiest way is reinstalling quilt and then redoing quiltrc. Run these commands:

mount -o remount,rw /
rm /opt/src/patches/*
ipkg-opt update
ipkg-opt remove quilt perl libdb gdbm util-linux-ng e2fslibs ncursesw ncurses
ipkg-opt install quilt-lite

The next one is REALLY important, and sets the patches directory. Make sure to copy the whole command and paste it.

sed -ire 's|^[\s#]*QUILT_PATCHES=.*|QUILT_PATCHES=/opt/src/patches|' /opt/etc/quilt.quiltrc

Run this command to make sure it worked:

cat /opt/etc/quilt.quiltrc | grep PATCHES=

Your output should be: QUILT_PATCHES=/opt/src/patches

If it isn't, then something went wrong.

If everything went well, import and try pushing the patch again

quilt import /opt/src/modifications/luna/show-actual-battery-percent.patch
quilt push -a

Let me know what happens. -hopspitfire 03:16, 16 August 2009 (UTC)

</nowiki>

dlbpre@castle:~$ sudo -s root@castle:/var/home/dlbpre# mount -o remount,rw / root@castle:/var/home/dlbpre# rm /opt/src/patches/* root@castle:/var/home/dlbpre# ipkg-opt update Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz Inflating http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/Packages.gz Updated list of available packages in /opt/lib/ipkg/lists/cross Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/native/unstable/Packages.gz Inflating http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/native/unstable/Packages.gz Updated list of available packages in /opt/lib/ipkg/lists/native Downloading http://ipkg.nslu2-linux.org/feeds/optware/pre/cross/unstable/Packages.gz Inflating http://ipkg.nslu2-linux.org/feeds/optware/pre/cross/unstable/Packages.gz Updated list of available packages in /opt/lib/ipkg/lists/kernel Successfully terminated. root@castle:/var/home/dlbpre# ipkg-opt remove quilt perl libdb gdbm util-linux-ng e2fslibs ncursesw ncurses Nothing to be done Successfully terminated. Collected errors: Package ncurses is depended upon by packages:

psmisc 

These might cease to work if package ncurses is removed.

You can force removal of this package with -force-depends. You can force removal of this package and its dependents with -force-removal-of-dependent-packages or -recursive or by setting option force_removal_of_dependent_packages in ipkg.conf. root@castle:/var/home/dlbpre# ipkg-opt install quilt-lite Package quilt-lite (0.48-5) installed in root is up to date. Nothing to be done Successfully terminated. root@castle:/var/home/dlbpre# sed -ire 's|^[\s#]*QUILT_PATCHES=.*|QUILT_PATCHES= /opt/src/patches|' /opt/etc/quilt.quiltrc root@castle:/var/home/dlbpre# cat /opt/etc/quilt.quiltrc | grep PATCHES= QUILT_PATCHES=/opt/src/patches root@castle:/var/home/dlbpre# quilt import /opt/src/modifications/luna/show-actual-battery-percent.patch Importing patch /opt/src/modifications/luna/show-actual-battery-percent.patch (stored as /opt/src/patches/show-actual-battery-percent.patch) root@castle:/var/home/dlbpre# quilt push -a Applying patch /opt/src/patches/show-actual-battery-percent.patch can't find file to patch at input line 11 Perhaps you used the wrong -p or --strip option? The text leading up to this was:


|show-actual-battery-percent | |Tested-On: 1.1 | |//show actual battery percent in the system user interface. |//note: battery @ 100% will only charge on a new charge event or if power is <94% |Index: /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js |=================================================================== |--- .orig/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js |+++ /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js


No file to patch. Skipping patch. 3 out of 3 hunks ignored Patch /opt/src/patches/show-actual-battery-percent.patch does not apply (with -f)

</nowiki>

there we go. Dlbpre


Everything looks good, I forgot to add a command to the list ('quilt push' needs to be run in '/'). Run this and it should work:
mount -o remount,rw /
cd /
quilt push -a

Let me know what happens.-hopspitfire 03:42, 16 August 2009 (UTC)