http://wiki.webos-internals.org/api.php?action=feedcontributions&user=Zinge&feedformat=atomWebOS Internals - User contributions [en]2024-03-29T11:22:04ZUser contributionsMediaWiki 1.35.1http://wiki.webos-internals.org/index.php?title=Accelerometer&diff=9507Accelerometer2010-04-04T00:37:25Z<p>Zinge: added note about lightweight stages</p>
<hr />
<div>The accelerometer appears to be a "KXSD9 SERIES Tri-Axis, 2g, 4g, 6g, 8g, User Selectable, Ultra Low Power Digital"<br />
[http://www.kionix.com/accelerometers/accelerometer-KXSD9.html http://www.kionix.com/accelerometers/accelerometer-KXSD9.html]<br />
<br />
<source lang="text"><br />
root@castle:/sys/class/input/input5# cat name<br />
kxsd9_accelerometer<br />
</source><br />
<br />
more info:<br />
<source lang="text"><br />
root@castle:/sys/class/input/input5# cat uevent<br />
PHYSDEVPATH=/class/i2c-adapter/i2c-3/3-0018<br />
PHYSDEVBUS=i2c<br />
PHYSDEVDRIVER=kxsd9_accelerometer<br />
PRODUCT=18/1/1/100<br />
NAME="kxsd9_accelerometer"<br />
EV==9<br />
ABS==7<br />
MODALIAS=input:b0018v0001p0001e0100-e0,3,kra0,1,2,mlsfw<br />
</source><br />
<br />
and at the very least you could adjust the low pass filter used, or the threshold for waking up:<br />
<br />
<source lang="text"><br />
root@castle:/sys/class/input/input5# ls -al<br />
drwxr-xr-x 6 root root 0 Jun 11 17:47 .<br />
drwxr-xr-x 8 root root 0 Jun 11 17:47 ..<br />
-rw-r--r-- 1 root root 4096 Jun 11 23:58 accelerometer_filter_frequency<br />
-rw-r--r-- 1 root root 4096 Jun 11 23:58 accelerometer_motion_wake_up_threshold<br />
drwxr-xr-x 2 root root 0 Jun 11 23:58 capabilities<br />
lrwxrwxrwx 1 root root 0 Jun 11 23:58 device -> ../../../class/i2c-adapter/i2c-3/3-0018<br />
drwxr-xr-x 3 root root 0 Jun 11 23:49 event5<br />
drwxr-xr-x 2 root root 0 Jun 11 23:58 id<br />
lrwxrwxrwx 1 root root 0 Jun 11 23:58 input:event5 -> ../../../class/input/input5/event5<br />
-r--r--r-- 1 root root 4096 Jun 11 23:58 modalias<br />
-rw-r--r-- 1 root root 0 Jun 11 23:50 mode<br />
-r--r--r-- 1 root root 4096 Jun 11 23:53 name<br />
-r--r--r-- 1 root root 4096 Jun 11 23:58 phys<br />
-rw-r--r-- 1 root root 4096 Jun 11 23:58 poll_interval<br />
drwxr-xr-x 2 root root 0 Jun 11 23:58 power<br />
lrwxrwxrwx 1 root root 0 Jun 11 23:58 subsystem -> ../../../class/input<br />
-rw-r--r-- 1 root root 4096 Jun 11 23:58 uevent<br />
-r--r--r-- 1 root root 4096 Jun 11 23:58 uniq<br />
</source><br />
<br />
<br />
<br />
More accelerometer info <br />
<br />
There's a library called libhidaccelerometer.so -- so it's treated as an HID class of devices. There is no dbus activity when you move the device, so this probably a much lower level service. Makes sense: you don't want zillions of dbus messages firing off whenever someone moves.<br />
<br />
Looking in running processes, I notice /usr/bin/hidd, which references a configuration file '''/etc/hidd/HidPlugins.xml'''<br />
<br />
In this file, two sockets are mentioned:<br />
/var/tmp/hidd/AccelerometerCmdSocket<br />
/var/tmp/hidd/AccelerometerEventSocket<br />
<br />
These are UNIX DGRAM sockets, which are open on the device.<br />
<br />
== Read Accelerometer from hidd ==<br />
<br />
# Implement the sample code in [[hidd]]<br />
# Change the main function to below<br />
<br />
<source lang="c"><br />
char code_names[] = {'x','y','z'};<br />
<br />
int main() {<br />
void *pHandle;<br />
struct input_event myevents[20];<br />
int ret = 0;<br />
int i = 0;<br />
<br />
pHandle = HidEventOpen(1);<br />
<br />
while (1) {<br />
ret = HidEventRead(pHandle, myevents, 20);<br />
<br />
for (i = 0; i < ret; i++)<br />
{<br />
float* value = (float*)(&myevents[i].value);<br />
if (myevents[i].type == 3 &&<br />
myevents[i].code < 3)<br />
{<br />
printf("%c: %f ",<br />
code_names[myevents[i].code],<br />
*value);<br />
}<br />
}<br />
printf("\n");<br />
}<br />
HidEventDeInit();<br />
HidEventClose(pHandle);<br />
return 0;<br />
}<br />
<br />
</source><br />
<br />
<br />
== Sample code ==<br />
Taken from boydell's Magic 8 Ball app:<br />
<br />
In his '''first-assistant.js''' (''... = code skips'')<br />
<source lang="javascript"><br />
... <br />
this.controller.listen(this.controller.sceneElement, Mojo.Event.tap, this.handleTap.bind(this));<br />
this.controller.listen(document, 'shakestart', this.handleShakeStart.bind(this));<br />
this.controller.listen(document, 'shaking', this.handleShaking.bind(this));<br />
this.controller.listen(document, 'shakeend', this.handleShakeEnd.bind(this));<br />
...<br />
FirstAssistant.prototype.handleShakeStart = function(event) {<br />
this.setBall();<br />
this.hideMessage();<br />
Event.stop(event);<br />
}<br />
<br />
FirstAssistant.prototype.handleShaking = function(event) {<br />
this.setBall();<br />
this.hideMessage();<br />
Event.stop(event);<br />
}<br />
<br />
FirstAssistant.prototype.handleShakeEnd = function(event) {<br />
this.showRandomMessage();<br />
Event.stop(event);<br />
</source><br />
<br />
<br />
To increase the resolution to 30Hz, use this snippet (requires WebOS 1.3.5 or above):<br />
<source lang="javascript"><br />
this.controller.stageController.setWindowProperties("fastAccelerometer");<br />
</source><br />
<br />
Note: After hours of trying to get the accelerometer working in my app, I figured out that if you are using createStageWithCallback to create your stages (such as in handleLaunch in the App Assistant), in the stage arguments, the "lightweight" property MUST be set to false. If it is set to true, the accelerometer will never return data (free window orientation will still work, however).<br />
<br />
<br />
[[Category:Hardware]]</div>Zingehttp://wiki.webos-internals.org/index.php?title=Application_talk:Preware&diff=6758Application talk:Preware2009-10-30T06:38:22Z<p>Zinge: New section: Possible Bug/Suggestion</p>
<hr />
<div>{{box | color = #cdf |<br />
This is a discussion page. Create a new topic with the '+' tab. Sign your comments using the signature button or by typing <code><nowiki>~~~~</nowiki></code>. If your suggestion reaches consensus, it may be implemented in a future version of the application.<br />
}}<br />
<br />
== Features and Suggestions ==<br />
<br />
Adding some suggestions... --[[User:Decimation|Decimation]] 15:14, 17 August 2009 (EST)<br />
* Show a progress bar or some sort of notification of the download/installation progress of an app..it would really be nice to have some feedback after clicking install.<br />
* Change the pop up dialog when an app is installed/removed... it's kinda ugly. Maybe show a notification at the bottom? That would be pretty cool.<br />
** The popup dialog is temporary until the service can supply progress of the action. When there is a progress bar, the popup will no longer be needed. --[[User:Oil|oil]] 20:44, 20 August 2009 (UTC)<br />
<br />
Adding some suggestions...for way into the future -- (s4mb4)<br />
* a process that would hook into the notification system to notify of available updates.<br />
<br />
Adding some suggestions... -- [[User:Tlp|Tlp]] 23:30, 18 August 2009 (UTC)<br />
* Swipe installed applications in list to uninstall<br />
** Is there a time where you want to remove multiple apps? (multiple as in more then a couple.) --[[User:Oil|oil]] 20:44, 20 August 2009 (UTC)<br />
<br />
Adding some suggestions... --[[User:Xorg|Xorg]] 16:09, 20 August 2009 (UTC)<br />
* Great that you can no see new/updated apps in 'List of Everything'. Suggest to rename 'List of Everything' to List of Newest/Updated Apps or something else that indicates this is best way to see newest apps (that may not be installed yet). <br />
* Or consider another choice to list only new apps, excluding things already installed.<br />
** The list of everything is called that because in the future it will not list only applications. The list of everything will include patches/themes/whatever else we decide to add to the preware installer. At which point we will add an "All" option to the available applications category list. --[[User:Oil|oil]] 20:44, 20 August 2009 (UTC)<br />
*** With all the themes rolling in now, it'd be great to have this in the next patch if possible. Totally awesome work so far! --[[User:Flare576|Flare576]] 19:18, 22 September 2009 (UTC)<br />
<br />
Adding some suggestions... --[[User:Decimation|Decimation]] 12:30, 20 August 2009 (EST)<br />
* Adding an "Update All" button to the update menu would be cool.. convenience is key ;)<br />
<br />
Suggestion: --[[User:Cdjh|Cdjh]] 15:54, 30 August 2009 (UTC)<br />
*Add a feature to remove all patches and modifications to webos before and webos update. Sort of a "Get me ready for and update" button. This would allow the user to remove all these patches such as the virtual keyboard with one button to update webos without fear. One button to add them back after the update would be cool too<br />
<br />
Suggestion: [[User:StoneRyno|StoneRyno]] 21:05, 30 August 2009 (UTC)<br />
*Download counts and ratings. The end of the current detail page is ok but feels more like looking at one of the technical detail scenes like the ##DEBUG# scene. I think that info can be cleaned up to look more presentable, small font size and put version last update and size in a bar near the top of the page like seen in the official app catalog.<br />
<br />
Suggestion: [[User:Hmagoo|Hmagoo]] 11:30, 4 September 2009 (UTC)<br />
*We're in need of a workaround for the limit on installable apps via the app catalog. Preware gets around this but also, in the process, adds to the number of installed apps as seen by the App Catalog, et al. What would be a useful feature is to be able to uninstall hunks of apps previously installed by Preware in an effort to make apps installable via the App Catalog. This would be a temporary removal as we would desire reinstalling the homebrews after using the App Catalog.<br />
**Caveats: Homebrew apps that use databases, and installed/downloaded files would not be removed without reducing their usability, So we would want to exclude on a case by case basis or with the use of flags?<br />
**Preware is great in keeping track of what is installed and which version, would be great to see something like this added so that we can use the App Catalog and install piles of Homebrews. (smile)<br />
<br />
== Possible Bug/Suggestion ==<br />
<br />
The new messages during version check/feed downloading are much better at explaining what is going on. However, I still have a problem if I get a notification or switch away from Preware after I open it before it finishes downloading. All of the steps between clicking the Preware icon and loading the feeds seem to require that Preware be in the foreground and not interrupted. Once it starts loading the feeds, I can switch away with no problem, and even get the nice banner popup that tells me when the feeds are finished. Is there a way to fix this problem so that I can open preware and immediately switch to another app, without it getting stuck on version checking or updating feeds?<br />
<br />
I can explain the problem in more detail if this is confusing, and I can recreate it every time.<br />
<br />
Thanks,<br />
[[User:Zinge|Zinge]] 06:38, 30 October 2009 (UTC)</div>Zingehttp://wiki.webos-internals.org/index.php?title=Application_talk:Terminal&diff=3979Application talk:Terminal2009-08-07T08:58:00Z<p>Zinge: /* Bugs:paste */</p>
<hr />
<div>== Bugs: Paste? ==<br />
- Can't seem to figure out how to paste something that was copied from another app/msg/web site. The old paste shortcut of "Gesture + V" doesn't work (because its being used for other things). I tried to "Insert" shortcut, but it didn't do anything.<br />
--[[User:Zinge|Zinge]] 08:58, 7 August 2009 (UTC)<br />
<br />
== Fullscren (curses?) apps scroll wrong ==<br />
Another quick bug: when running irssi or BX only the first line above the status bar line(s) scrolls. When going between landscape and portrait mode, the screen refreshes properly, but still only one line scrolls in either mode. This is as of 0.1.5. --[[User:T3rmin|T3rmin]] 17:00, 28 July 2009 (UTC)<br />
<br />
== New Version Changelog? ==<br />
<br />
The newest version from the feed seems to be 0.1.6. Anybody know what changes have been made? --[[User:Zinge|Zinge]] 19:30, 1 August 2009 (UTC)<br />
<br />
== Font Size Feature Request ==<br />
Well done! I notice that there are two fonts, normal and small. Would it be possible to add an intermediate font size? The 40 col is to large for seeing much and the 80 col is far to small. Would it be possible to have a ~60col font? --[[user:Dreadchicken|Dreadchicken]]<br />
<br />
== Broadcast messages when phone sleeps/wakes ==<br />
<br />
Has anyone figured out how to stop the broadcast messages generated on the Terminal when the phone sleeps and wakes? They clobber whatever's on the screen if you happen to turn off the phone while Terminal is open.<br />
<br />
Other than this, great app. I'm eternally grateful. :) --[[User:zorinlynx|zorinlynx]]<br />
<br />
I'm not sure if this will help, but there is a quilt patch in the gitorious modification for disabling some messages to the log. http://gitorious.org/webos-internals/modifications/blobs/master/luna/quiet-powerd-messages.patch --[[User:Plee3|plee3]] 21:05, 3 August 2009 (UTC)<br />
<br />
Thank you! This has resolved the issue. --[[User:Zorinlynx|Zorinlynx]] 21:24, 3 August 2009 (UTC)</div>Zingehttp://wiki.webos-internals.org/index.php?title=VideoRecording&diff=3948VideoRecording2009-08-07T08:23:10Z<p>Zinge: /* ToDo */</p>
<hr />
<div>At your command line (after [[Portal:Accessing_Linux|accessing linux]]):<br />
<br />
(make sure FS is rw)<br><br />
<source lang="bash"><br />
mount -o remount,rw /<br />
gst-launch camsrc ! palmvideoencoder ! filesink location=/media/internal/downloads/foo.mts<br />
mount -o remount,ro /<br />
</source><br />
- No GUI<br><br />
- No sound (need a muxer plugin? verify alsasrc works)<br><br />
- Frame rate seemed pretty decent too.<br><br />
- Video is H.264 at 480x320.<br><br />
- Image is rotated 90 degrees CCW<br />
<br />
other useful gstreamer commands:<br />
<br />
gst-inspect (shows list of sources to pipe through, mostly decoders/demuxers)<br />
<source lang="text"><br />
root@castle:/var/home/ccrook# gst-inspect<br />
palmvideodecoder: palmvideodecoder: palmvideodecoder<br />
palmaudiodecoder: palmaudiodecoder: palmaudiodecoder<br />
wavparse: wavparse: WAV audio demuxer<br />
wavenc: wavenc: WAV audio muxer<br />
udp: udpsink: UDP packet sender<br />
udp: multiudpsink: UDP packet sender<br />
udp: dynudpsink: UDP packet sender<br />
udp: udpsrc: UDP packet receiver<br />
typefindfunctions: application/x-id3v2: mp3, mp2, mp1, mpga, ogg, flac, tta<br />
typefindfunctions: application/x-id3v1: mp3, mp2, mp1, mpga, ogg, flac, tta<br />
typefindfunctions: audio/mpeg: mp3, mp2, mp1, mpga<br />
typefindfunctions: video/mpeg4: m4v<br />
typefindfunctions: audio/x-m4a: m4a<br />
typefindfunctions: application/x-3gp: 3gp<br />
typefindfunctions: video/quicktime: mov<br />
typefindfunctions: audio/x-wav: wav<br />
typefindfunctions: adts_mpeg_stream: aac<br />
typefindfunctions: audio/x-amr-nb-sh: amr<br />
typefindfunctions: audio/x-amr-wb-sh: amr<br />
rtsp: rtspsrc: RTSP packet receiver<br />
rtsp: rtpdec: RTP Decoder<br />
rtsp: rtspgoogle: Google RTSP Extension<br />
gstrtpmanager: gstrtpbin: RTP Bin<br />
gstrtpmanager: gstrtpclient: RTP Client<br />
gstrtpmanager: gstrtpjitterbuffer: RTP packet jitter-buffer<br />
gstrtpmanager: gstrtpptdemux: RTP Demux<br />
gstrtpmanager: gstrtpsession: RTP Session<br />
gstrtpmanager: gstrtpssrcdemux: RTP SSRC Demux<br />
rtp: rtpdepay: RTP depayloader<br />
rtp: rtpac3depay: RTP packet depayloader<br />
rtp: rtpdvdepay: RTP DV Depayloader<br />
rtp: rtpdvpay: RTP DV Payloader<br />
rtp: rtpilbcpay: RTP Payloader for iLBC Audio<br />
rtp: rtpilbcdepay: RTP iLBC packet depayloader<br />
rtp: rtpg726depay: RTP packet depayloader<br />
rtp: rtpg726pay: RTP packet payloader<br />
rtp: rtpg729depay: RTP packet depayloader<br />
rtp: rtpg729pay: RTP Payloader for G729 Audio<br />
rtp: rtpgsmdepay: RTP packet depayloader<br />
rtp: rtpgsmpay: RTP GSM audio payloader<br />
rtp: rtpamrdepay: RTP packet depayloader<br />
rtp: rtpamrpay: RTP packet payloader<br />
rtp: rtppcmadepay: RTP packet depayloader<br />
rtp: rtppcmudepay: RTP packet depayloader<br />
rtp: rtppcmupay: RTP packet payloader<br />
rtp: rtppcmapay: RTP packet payloader<br />
rtp: rtpmpadepay: RTP packet depayloader<br />
rtp: rtpmpapay: RTP packet payloader<br />
rtp: rtpmpvdepay: RTP packet depayloader<br />
rtp: rtpmpvpay: RTP MPEG2 ES video payloader<br />
rtp: rtph263ppay: RTP packet payloader<br />
rtp: rtph263pdepay: RTP packet depayloader<br />
rtp: rtph263depay: RTP H263 packet depayloader<br />
rtp: rtph263pay: RTP packet payloader<br />
rtp: rtph264depay: RTP packet depayloader<br />
rtp: rtph264pay: RTP packet payloader<br />
rtp: rtpL16pay: RTP packet payloader<br />
rtp: rtpL16depay: RTP packet depayloader<br />
rtp: asteriskh263: RTP packet parser<br />
rtp: rtpmp1sdepay: RTP packet depayloader<br />
rtp: rtpmp2tdepay: RTP packet depayloader<br />
rtp: rtpmp2tpay: RTP MP2T audio payloader<br />
rtp: rtpmp4vpay: RTP MPEG-4 Video packet payloader<br />
rtp: rtpmp4vdepay: RTP packet depayloader<br />
rtp: rtpmp4apay: RTP packet payloader<br />
rtp: rtpmp4adepay: RTP packet parser<br />
rtp: rtpmp4gdepay: RTP packet depayloader<br />
rtp: rtpmp4gpay: RTP packet payloader<br />
rtp: rtpspeexpay: RTP packet payloader<br />
rtp: rtpspeexdepay: RTP packet depayloader<br />
rtp: rtpsv3vdepay: RTP packet depayloader<br />
rtp: rtptheoradepay: RTP packet depayloader<br />
rtp: rtptheorapay: RTP packet depayloader<br />
rtp: rtpvorbisdepay: RTP packet depayloader<br />
rtp: rtpvorbispay: RTP packet depayloader<br />
rtp: rtpvrawdepay: RTP packet depayloader<br />
rtp: rtpvrawpay: RTP packet payloader<br />
queue2: queue2: Queue<br />
quicktime: qtdemux: QuickTime demuxer<br />
quicktime: rtpxqtdepay: RTP packet depayloader<br />
playback: playbin: Player Bin<br />
playback: playbin2: Player Bin 2<br />
mulaw: mulawenc: Mu Law audio encoder<br />
mulaw: mulawdec: Mu Law audio decoder<br />
mobirtspsrc: mobirtspsrc: MobiRtspSrc<br />
ffmpeg: ffdec_alac: FFMPEG ALAC (Apple Lossless Audio Codec) decoder<br />
ffmpeg: ffdec_qcelp: FFMPEG QCELP / PureVoice decoder<br />
ffmpeg: ffdeinterlace: FFMPEG Deinterlace element<br />
ffmpeg: ffaudioresample: FFMPEG Audio resampling element<br />
uridecodebin: decodebin2: Decoder Bin<br />
uridecodebin: uridecodebin: URI Decoder<br />
decodebin: decodebin: Decoder Bin<br />
coreindexers: memindex: A index that stores entries in memory<br />
coreelements: capsfilter: CapsFilter<br />
coreelements: fakesrc: Fake Source<br />
coreelements: fakesink: Fake Sink<br />
coreelements: fdsrc: Filedescriptor Source<br />
coreelements: fdsink: Filedescriptor Sink<br />
coreelements: filesrc: File Source<br />
coreelements: identity: Identity<br />
coreelements: queue: Queue<br />
coreelements: filesink: File Sink<br />
coreelements: tee: Tee pipe fitting<br />
coreelements: typefind: TypeFind<br />
coreelements: multiqueue: MultiQueue<br />
video4linux2: camsrc: Video (video4linux2/raw) Source<br />
avi: avidemux: Avi demuxer<br />
avi: avimux: Avi muxer<br />
avi: avisubtitle: Avi subtitle parser<br />
audiotestsrc: audiotestsrc: Audio test source<br />
audiorate: audiorate: Audio rate adjuster<br />
audioconvert: audioconvert: Audio converter<br />
alsa: alsamixer: Alsa mixer<br />
alsa: alsasrc: Audio source (ALSA)<br />
alsa: alsasink: Audio sink (ALSA)<br />
alaw: alawenc: A Law audio encoder<br />
alaw: alawdec: A Law audio decoder<br />
palmvideosink: palmvideosink: palmvideosink<br />
palmvideoencoder: palmvideoencoder: palmvideoencoder<br />
palmqcelpdemux: palmqcelpdemux: palmqcelpdemux<br />
palmqcelpdemux: audio/x-gst-fourcc-sqcp: no extensions<br />
palmmp3demux: palmmp3demux: palmmp3demux<br />
palmjpegencfilesink: palmjpegencfilesink: palmjpegencfilesink<br />
palmhttpsrc: palmhttpsrc: Palm HTTP Source Element<br />
palmamrdemux: palmamrdemux: palmamrdemux<br />
adpcmdecoder: palmadpcmdecoder: ADPCM Decoder<br />
palmaacdemux: palmaacdemux: palmaacdemux<br />
staticelements: bin: Generic bin<br />
staticelements: pipeline: Pipeline object<br />
<br />
Total count: 36 plugins, 129 features<br />
</source><br />
<br />
Additional reference from XO Laptop site: <br />
<br />
http://wiki.laptop.org/go/Programming_the_camera<br><br />
http://wiki.laptop.org/go/GStreamer#Using_gst_at_the_command_line<br><br />
<br />
Currently looking at ways to use the camera preview pipe as a method of video recording through the WebOS GUI by diverting it to the filesystem.<br />
<br />
File of interest: /usr/lib/luna/luna-media/palmInitMedia.js<br />
<br />
<br />
More on the camera module: http://www.st.com/stonline/products/literature/bd/14404/vx6852.htm<br />
<br />
<br />
<br />
== ToDo ==<br />
1.) Figure out proper way to freevideosink via a homebrew app<br><br />
2.) Mux in sound from alsasrc<br><br />
:"gst-launch alsasrc ! alsasink" will give you sound from the mic playing back through the speakers, verifying alsasrc. It quickly loses resolution though, and starts giving "can't keep up with audio source" errors. --[[User:Zinge|Zinge]] 08:23, 7 August 2009 (UTC)<br />
3.) Implement preview screen (possibility: send video through palmvideosink, then to palmvideoencoder)<br><br />
4.) Get Videos app to display recorded video<br><br />
5.) Video conferencing via UDPsink?<br></div>Zingehttp://wiki.webos-internals.org/index.php?title=Talk:Preware_Design&diff=3570Talk:Preware Design2009-08-03T07:04:04Z<p>Zinge: /* GUI Addition: Version# and Changelog */ fixed indent formatting</p>
<hr />
<div>== Add a Discussion Topic ==<br />
<br />
<nowiki>== Topic ==</nowiki><br />
<br />
Don't forget to hit the signature button after your comment. Use the ":" character to indent. Once it's basically decided on transition it to the Preware's application page.<br />
<br />
== Replacing wiki pages? ==<br />
<br />
Is this going to replace the application pages in this wiki? I think it should.<br />
—[[user:X1011|X1011]] 22:31, 25 July 2009 (UTC)<br />
<br />
This has not been decided yet, but in all odds it eventually will. --[[User:Templarian|Templarian]] 03:18, 3 August 2009 (UTC)<br />
<br />
== protection ==<br />
'''Page is now unprotected and moved to the application name space.'''[[User:Rboatright|rboatright]] 04:24, 30 July 2009 (UTC)<br />
<br />
why is this page protected? I think we should follow [[wikipedia:WP:NO-PREEMPT]].<br />
—[[user:X1011|X1011]] 22:31, 25 July 2009 (UTC)<br />
<br />
Quality control by sysops. --[[User:Templarian|Templarian]] 22:44, 27 July 2009 (UTC)<br />
<br />
<br />
are you saying that only sysops are capable of quality?<br />
<br />
also, it says it's a discussion page. how can it be if it's protected?<br />
<br />
—[[user:X1011|X1011]] 07:30, 29 July 2009 (UTC)<br />
<br />
<br />
I forgot to unprotect the preware page when I moved it -- sorry [[User:Rboatright|rboatright]]<br />
<br />
== XML feeds ==<br />
<br />
* instead of <firmware>:<br />
<source lang='xml'><br />
<webOSVersion><br />
<min>1.0.3</min><br />
<max>1.1</max><br />
</webOSVersion><br />
</source><br />
* maintainer:<br />
<source lang='xml'><br />
<maintainer id="42"><br />
<name>John Doe</name><br />
<email>email@domain.com</email><br />
</maintainer><br />
</source><br />
* should a category have an id? everything else does.<br />
* in the review, you have the type in the message tag, but in the comment, you have it in the messages tag.<br />
* <comment> should be <text> or <body><br />
* in <comment>, what do you mean by 'split it somewhere'?<br />
* does <code>preware.org/feed/xml/type/</code> have a meaning? if not, we should use:<br />
<source lang='text'><br />
preware.org/feed/xml/application/23/<br />
preware.org/feed/xml/plugin/23/<br />
</source><br />
<br />
—[[user:X1011|X1011]] 09:27, 29 July 2009 (UTC)<br />
<br />
- Agreed with all suggestions in this section, and they are now reflected in the article. --[[User:Templarian|Templarian]] 02:33, 3 August 2009 (UTC)<br />
<br />
== GUI Addition: Version# and Changelog ==<br />
<br />
Idea: Add a small "Details" or "+" button on the app and plugins pages. It can go at the end of the description, or possibly to the right of the very large "Install/Delete" button. It may not be wanted though. I know we don't want to show version numbers on the app page, but I'd love to have some way to access the version number and changelog from within the Preware app, even if its semi-hidden. I read the results of Rick's papercraft gui study, and agree with a lot of the comments, but I still feel like this is something that would be helpful to have available somewhere in the app, even if it isn't immediately obvious how to get to it (since its not something that is necessarily required by the average user). --[[User:Zinge|Zinge]] 02:29, 3 August 2009 (UTC)<br />
<br />
: Changes reflected in the Preware Application mockup image. --[[User:Templarian|Templarian]] 02:46, 3 August 2009 (UTC)<br />
<br />
:: Looks good, but we may want to change the "list" icon to something that look less like "go back to the app list". My suggestions are- are lowercase "i" or the "+" symbol. Any better ideas? --[[User:Zinge|Zinge]] 02:56, 3 August 2009 (UTC)<br />
<br />
::: lowercase i is the correct icon, I changed it to reflect that in the mockup. --[[User:Templarian|Templarian]] 03:11, 3 August 2009 (UTC)</div>Zingehttp://wiki.webos-internals.org/index.php?title=Talk:Preware_Design&diff=3550Talk:Preware Design2009-08-03T02:56:52Z<p>Zinge: /* GUI Addition: Version# and Changelog */</p>
<hr />
<div>== Replacing wiki pages? ==<br />
<br />
Is this going to replace the application pages in this wiki? I think it should.<br />
—[[user:X1011|X1011]] 22:31, 25 July 2009 (UTC)<br />
<br />
== protection ==<br />
'''Page is now unprotected and moved to the application name space.'''[[User:Rboatright|rboatright]] 04:24, 30 July 2009 (UTC)<br />
<br />
why is this page protected? I think we should follow [[wikipedia:WP:NO-PREEMPT]].<br />
—[[user:X1011|X1011]] 22:31, 25 July 2009 (UTC)<br />
<br />
Quality control by sysops. --[[User:Templarian|Templarian]] 22:44, 27 July 2009 (UTC)<br />
<br />
<br />
are you saying that only sysops are capable of quality?<br />
<br />
also, it says it's a discussion page. how can it be if it's protected?<br />
<br />
—[[user:X1011|X1011]] 07:30, 29 July 2009 (UTC)<br />
<br />
<br />
I forgot to unprotect the preware page when I moved it -- sorry [[User:Rboatright|rboatright]]<br />
<br />
== XML feeds ==<br />
<br />
* instead of <firmware>:<br />
<source lang='xml'><br />
<webOSVersion><br />
<min>1.0.3</min><br />
<max>1.1</max><br />
</webOSVersion><br />
</source><br />
* maintainer:<br />
<source lang='xml'><br />
<maintainer id="42"><br />
<name>John Doe</name><br />
<email>email@domain.com</email><br />
</maintainer><br />
</source><br />
* should a category have an id? everything else does.<br />
* in the review, you have the type in the message tag, but in the comment, you have it in the messages tag.<br />
* <comment> should be <text> or <body><br />
* in <comment>, what do you mean by 'split it somewhere'?<br />
* does <code>preware.org/feed/xml/type/</code> have a meaning? if not, we should use:<br />
<source lang='text'><br />
preware.org/feed/xml/application/23/<br />
preware.org/feed/xml/plugin/23/<br />
</source><br />
<br />
—[[user:X1011|X1011]] 09:27, 29 July 2009 (UTC)<br />
<br />
- Agreed with all suggestions in this section, and they are now reflected in the article. --[[User:Templarian|Templarian]] 02:33, 3 August 2009 (UTC)<br />
<br />
== GUI Addition: Version# and Changelog ==<br />
<br />
Idea: Add a small "Details" or "+" button on the app and plugins pages. It can go at the end of the description, or possibly to the right of the very large "Install/Delete" button. It may not be wanted though. I know we don't want to show version numbers on the app page, but I'd love to have some way to access the version number and changelog from within the Preware app, even if its semi-hidden. I read the results of Rick's papercraft gui study, and agree with a lot of the comments, but I still feel like this is something that would be helpful to have available somewhere in the app, even if it isn't immediately obvious how to get to it (since its not something that is necessarily required by the average user). --[[User:Zinge|Zinge]] 02:29, 3 August 2009 (UTC)<br />
<br />
Changes reflected in the Preware Application mockup image. --[[User:Templarian|Templarian]] 02:46, 3 August 2009 (UTC)<br />
<br />
Looks good, but we may want to change the "list" icon to something that look less like "go back to the app list". My suggestions are:<br />
are lowercase "i" or the "+" symbol. Any better ideas? --[[User:Zinge|Zinge]] 02:56, 3 August 2009 (UTC)</div>Zingehttp://wiki.webos-internals.org/index.php?title=Talk:Preware_Design&diff=3538Talk:Preware Design2009-08-03T02:29:59Z<p>Zinge: New section: GUI Addition: Version# and Changelog</p>
<hr />
<div>== Replacing wiki pages? ==<br />
<br />
Is this going to replace the application pages in this wiki? I think it should.<br />
—[[user:X1011|X1011]] 22:31, 25 July 2009 (UTC)<br />
<br />
== protection ==<br />
'''Page is now unprotected and moved to the application name space.'''[[User:Rboatright|rboatright]] 04:24, 30 July 2009 (UTC)<br />
<br />
why is this page protected? I think we should follow [[wikipedia:WP:NO-PREEMPT]].<br />
—[[user:X1011|X1011]] 22:31, 25 July 2009 (UTC)<br />
<br />
Quality control by sysops. --[[User:Templarian|Templarian]] 22:44, 27 July 2009 (UTC)<br />
<br />
<br />
are you saying that only sysops are capable of quality?<br />
<br />
also, it says it's a discussion page. how can it be if it's protected?<br />
<br />
—[[user:X1011|X1011]] 07:30, 29 July 2009 (UTC)<br />
<br />
== XML feeds ==<br />
<br />
* instead of <firmware>:<br />
<source lang='xml'><br />
<webOSVersion><br />
<min>1.0.3</min><br />
<max>1.1</max><br />
</webOSVersion><br />
</source><br />
* maintainer:<br />
<source lang='xml'><br />
<maintainer id="42"><br />
<name>John Doe</name><br />
<email>email@domain.com</email><br />
</maintainer><br />
</source><br />
* should a category have an id? everything else does.<br />
* in the review, you have the type in the message tag, but in the comment, you have it in the messages tag.<br />
* <comment> should be <text> or <body><br />
* in <comment>, what do you mean by 'split it somewhere'?<br />
* does <code>preware.org/feed/xml/type/</code> have a meaning? if not, we should use:<br />
<source lang='text'><br />
preware.org/feed/xml/application/23/<br />
preware.org/feed/xml/plugin/23/<br />
</source><br />
<br />
—[[user:X1011|X1011]] 09:27, 29 July 2009 (UTC)<br />
<br />
== GUI Addition: Version# and Changelog ==<br />
<br />
Idea: Add a small "Details" or "+" button on the app and plugins pages. It can go at the end of the description, or possibly to the right of the very large "Install/Delete" button. It may not be wanted though. I know we don't want to show version numbers on the app page, but I'd love to have some way to access the version number and changelog from within the Preware app, even if its semi-hidden. I read the results of Rick's papercraft gui study, and agree with a lot of the comments, but I still feel like this is something that would be helpful to have available somewhere in the app, even if it isn't immediately obvious how to get to it (since its not something that is necessarily required by the average user). --[[User:Zinge|Zinge]] 02:29, 3 August 2009 (UTC)</div>Zingehttp://wiki.webos-internals.org/index.php?title=Patch_webOS_Brightness&diff=3527Patch webOS Brightness2009-08-03T01:55:55Z<p>Zinge: Added link to forum thread with app download as example</p>
<hr />
<div>Works with: 1.0.x, 1.1<br />
<br />
= Modifying Brightness Slider=<br />
Obviously this isn't too big a hack, and it honestly barely makes a difference, but people have complained about the lowest brightness being too bright.<br />
<br />
As it turns out, the slider goes from 10-100 as the default. You can change this from 0-100 very easily, if you don't mind not having a keyboard backlight at the lowest settings. It is only slightly less bright than the original maximum, but it's such an easy change that people might want to do it anyway.<br />
<br />
'''/usr/palm/applications/com.palm.app.screenlock/app/controllers/securityconfig-assistant.js'''<br />
<br />
webOS 1.0.x: In line '''27''', change the 10 to 0.<br />
<br />
webOS 1.1: In line '''34''', change the 10 to a 1 (or 0).<br />
<br />
= Suggested Future Mods=<br />
I don't know that it'll be possible, it seems to be only one system call, but it'd be great if someone could figure out how to separate screen brightness and keyboard backlight brightness.<br />
<br />
Question: Any idea how to have screen brightness at 0 and still have the keyboard backlight on?<br />
<br />
Possible Answer: It's possible to manually hit the keyboard LEDs at any brightness desired. The devices are:<br />
<pre><nowiki><br />
/sys/class/leds/kbd_bl_led_center/brightness <br />
/sys/class/leds/kbd_bl_led_left/brightness<br />
/sys/class/leds/kbd_bl_led_right/brightness<br />
</nowiki></pre><br />
(-pEEf)<br />
<br />
<br />
Answer: Here are the luna-send lines to hit the keyboard and display brightnesses separately.<br />
<br />
luna-send -n 1 palm://com.palm.power/backlight/set '{"keypad":{"brightness":10}}'<br />
<br />
luna-send -n 1 palm://com.palm.power/backlight/set '{"display":{"brightness":10}}'<br />
<br />
I made an app that functions like the screen brightness palm app, that allows these to be adjusted without shell access. Forum thread with ipkg download (look at the source for an example on how to use the above luna calls in an app): http://forums.precentral.net/homebrew-apps/196412-brightness-unlinked-0-0-3-a.html.<br />
--[[User:Zinge|Zinge]] 11:15, 2 August 2009 (UTC)</div>Zingehttp://wiki.webos-internals.org/index.php?title=Patch_webOS_Brightness&diff=3452Patch webOS Brightness2009-08-02T11:15:02Z<p>Zinge: Added luna-send commands for keyboard and display brightness</p>
<hr />
<div>Works with: 1.0.x, 1.1<br />
<br />
= Modifying Brightness Slider=<br />
Obviously this isn't too big a hack, and it honestly barely makes a difference, but people have complained about the lowest brightness being too bright.<br />
<br />
As it turns out, the slider goes from 10-100 as the default. You can change this from 0-100 very easily, if you don't mind not having a keyboard backlight at the lowest settings. It is only slightly less bright than the original maximum, but it's such an easy change that people might want to do it anyway.<br />
<br />
'''/usr/palm/applications/com.palm.app.screenlock/app/controllers/securityconfig-assistant.js'''<br />
<br />
webOS 1.0.x: In line '''27''', change the 10 to 0.<br />
<br />
webOS 1.1: In line '''34''', change the 10 to a 1 (or 0).<br />
<br />
= Suggested Future Mods=<br />
I don't know that it'll be possible, it seems to be only one system call, but it'd be great if someone could figure out how to separate screen brightness and keyboard backlight brightness.<br />
<br />
Question: Any idea how to have screen brightness at 0 and still have the keyboard backlight on?<br />
<br />
Possible Answer: It's possible to manually hit the keyboard LEDs at any brightness desired. The devices are:<br />
<pre><nowiki><br />
/sys/class/leds/kbd_bl_led_center/brightness <br />
/sys/class/leds/kbd_bl_led_left/brightness<br />
/sys/class/leds/kbd_bl_led_right/brightness<br />
</nowiki></pre><br />
(-pEEf)<br />
<br />
<br />
Answer: Here are the luna-send lines to hit the keyboard and display brightnesses separately.<br />
<br />
luna-send -n 1 palm://com.palm.power/backlight/set '{"keypad":{"brightness":10}}'<br />
<br />
luna-send -n 1 palm://com.palm.power/backlight/set '{"display":{"brightness":10}}'<br />
<br />
I made an app that functions like the screen brightness palm app, that allows these to be adjusted without shell access. I'll post a link as an example once I get dev access and have a thread in the homebrew forum for it.<br />
--[[User:Zinge|Zinge]] 11:15, 2 August 2009 (UTC)</div>Zingehttp://wiki.webos-internals.org/index.php?title=Application_talk:Terminal&diff=3430Application talk:Terminal2009-08-01T19:30:28Z<p>Zinge: /* New Version Changelog? */</p>
<hr />
<div>== Bugs: tab completion, slowdown ==<br />
-Tab completion working fine as of 1.5.<br />
<br />
-Slowdown is not fixed, but better<br />
As of 1.5, slowdown only seems to happen if something is actively scrolling the terminal. If something (like find) is running and scrolling the screen, or if I flick it to scroll and immediately minimize it and try to open other apps, it still slows down, but when it is sitting at a screen not doing anything, the phone seems fine.<br />
--[[user:Zinge|Zinge]]<br />
<br />
== Fullscren (curses?) apps scroll wrong ==<br />
Another quick bug: when running irssi or BX only the first line above the status bar line(s) scrolls. When going between landscape and portrait mode, the screen refreshes properly, but still only one line scrolls in either mode. This is as of 0.1.5. --[[User:T3rmin|T3rmin]] 17:00, 28 July 2009 (UTC)<br />
<br />
== New Version Changelog? ==<br />
<br />
The newest version from the feed seems to be 0.1.6. Anybody know what changes have been made? --[[User:Zinge|Zinge]] 19:30, 1 August 2009 (UTC)</div>Zingehttp://wiki.webos-internals.org/index.php?title=Application_talk:Terminal&diff=3429Application talk:Terminal2009-08-01T19:30:11Z<p>Zinge: New section: New Version Changelog?</p>
<hr />
<div>== Bugs: tab completion, slowdown ==<br />
-Tab completion working fine as of 1.5.<br />
<br />
-Slowdown is not fixed, but better<br />
As of 1.5, slowdown only seems to happen if something is actively scrolling the terminal. If something (like find) is running and scrolling the screen, or if I flick it to scroll and immediately minimize it and try to open other apps, it still slows down, but when it is sitting at a screen not doing anything, the phone seems fine.<br />
--[[user:Zinge|Zinge]]<br />
<br />
== Fullscren (curses?) apps scroll wrong ==<br />
Another quick bug: when running irssi or BX only the first line above the status bar line(s) scrolls. When going between landscape and portrait mode, the screen refreshes properly, but still only one line scrolls in either mode. This is as of 0.1.5. --[[User:T3rmin|T3rmin]] 17:00, 28 July 2009 (UTC)<br />
<br />
== New Version Changelog? ==<br />
<br />
The newest version from the feed seems to be 0.1.6. Anybody know what changes have been made? [[User:Zinge|Zinge]] 19:30, 1 August 2009 (UTC)</div>Zingehttp://wiki.webos-internals.org/index.php?title=Application_talk:Terminal&diff=2834Application talk:Terminal2009-07-29T00:03:16Z<p>Zinge: /* Bugs: tab completion, slowdown */ Updated responses for 1.5</p>
<hr />
<div>== Bugs: tab completion, slowdown ==<br />
-Tab completion working fine as of 1.5.<br />
<br />
-Slowdown is not fixed, but better<br />
As of 1.5, slowdown only seems to happen if something is actively scrolling the terminal. If something (like find) is running and scrolling the screen, or if I flick it to scroll and immediately minimize it and try to open other apps, it still slows down, but when it is sitting at a screen not doing anything, the phone seems fine.<br />
--[[user:Zinge|Zinge]]<br />
<br />
== Fullscren (curses?) apps scroll wrong ==<br />
Another quick bug: when running irssi or BX only the first line above the status bar line(s) scrolls. When going between landscape and portrait mode, the screen refreshes properly, but still only one line scrolls in either mode. This is as of 0.1.5. --[[User:T3rmin|T3rmin]] 17:00, 28 July 2009 (UTC)</div>Zingehttp://wiki.webos-internals.org/index.php?title=Patch_Messaging_Display_Full_Status_Messages&diff=2580Patch Messaging Display Full Status Messages2009-07-27T00:58:24Z<p>Zinge: Removed duplicate "Step 2"</p>
<hr />
<div>This mod will expand the truncated status messages in the messenger under Buddy List.<br />
<br />
<br />
Step 1: Make yourself root.<br />
<pre><nowiki><br />
sudo -i<br />
</nowiki></pre><br />
<br />
Step 2: Unlock file system<br />
<pre><nowiki><br />
mount -o remount,rw /<br />
</nowiki></pre><br />
<br />
Step 3: Open /usr/palm/applications/com.palm.app.messaging/stylesheets/messaging.css<br />
<pre><nowiki><br />
vi /usr/palm/applications/com.palm.app.messaging/stylesheets/messaging.css<br />
</nowiki></pre><br />
<br />
Step 4: Go to line 167<br />
<pre><nowiki><br />
:167<br />
</nowiki></pre><br />
<br />
Should be <br />
<pre><nowiki><br />
.buddy-list .palm-row {<br />
height: 60px;<br />
}<br />
</nowiki></pre><br />
<br />
Step 5: Replace<br />
<pre><nowiki><br />
height: 60px;<br />
</nowiki></pre><br />
<br />
with<br />
<br />
<pre><nowiki><br />
height: auto;<br />
</nowiki></pre><br />
<br />
<br />
Step 6: Open /usr/palm/applications/com.palm.app.messaging/app/views/listview/buddyList-row.html<br />
<pre><nowiki><br />
vi /usr/palm/applications/com.palm.app.messaging/app/views/listview/buddyList-row.html<br />
</nowiki></pre><br />
<br />
Step 7: Go to line 11<br />
<pre><nowiki><br />
:11<br />
</nowiki></pre><br />
<br />
should be<br />
<pre><nowiki><br />
<div class="truncating-text custom-message">#{-customMessage}</div><br />
</nowiki></pre><br />
<br />
Step 8: Replace<br />
<pre><nowiki><br />
<div class="truncating-text custom-message">#{-customMessage}</div><br />
</nowiki></pre><br />
<br />
with <br />
<br />
<pre><nowiki><br />
<div class="custom-message">#{-customMessage}</div><br />
</nowiki></pre><br />
<br />
= Credits=<br />
Submitted by Atlanta (Another precentral user also helped me with research)</div>Zingehttp://wiki.webos-internals.org/index.php?title=Application_talk:Terminal&diff=2453Application talk:Terminal2009-07-26T08:42:45Z<p>Zinge: New page: I'm assuming this "Discussion" page would be a good place to report bugs as suggested on the Terminal page... Anyway, when I try to tab-complete a line (Sym + i), the line becomes blank. ...</p>
<hr />
<div>I'm assuming this "Discussion" page would be a good place to report bugs as suggested on the Terminal page...<br />
<br />
Anyway, when I try to tab-complete a line (Sym + i), the line becomes blank. The cursor stays in place, and the line of text disappears. When I hit enter, it works correctly (only a display issue, not a tab completion issue). I can get a screenshot if that is necessary/help any. Also, the terminal app seems to immensely slow down my Pre after a min or two, and it visibly lags as it closes and minimizes the app, then immediately speeds back up once its closed.<br />
<br />
Not complaining, just reporting bugs. Thanks for all the hard work!</div>Zinge