Saturday, November 20, 2010

近期热炒a9手机汇总

近期新出炉手机汇总

1. nexus s
2. lg tegra 2
3. moto tegra 2

自从谷歌老大拿着nexus s大摇大摆的招摇过市, 另两位就忙不迭的也把半生不熟的tegra2搬了出来
不管怎么样,都是cortex-a9, 个人感觉算作下一代产品了吧,应该会有一个不大不小的性能飞跃,可能会>snapdragon2-snapdragon1
其次,大屏应该也是这三个的驱势
其实我觉得最值得说说的还是nexus系列,prince of androids
回想当年nexus one,google一定是想nexus应该是那代手机里的旗舰,至少不能比iphne差的一个
可惜htc不给力,很有可能把hd2的方案拿出来改了改就交账了,结果大家都知道了,触摸飘移,adreno200游戏性能低下。然后google卖了50万台就不好意思卖了。换了谁都不会再找htc做nexus2了。
说起htc,还要再多唠叨两句,不然实在不解恨。当年hero上了个sense界面,用上一代的硬件就敢卖旗舰的价。不久后moto出了milestone打的htc鼻青脸肿,结果htc应对就是给hero换了壳,出的legend硬件升级幅度小的另人发指。然后做完了nexus,顺手就出了个desire又是狠狠赚了一笔,desire相对于n1,连壳都没怎么换。直到desire hd出现,这已经是一年之后的事了。其实,desire hd缩小一点才算是n1本来应该的样子。好吧,必竟htc不是moto或者sam,技术底子没那么深厚,不得不等着高通提供给它的mtk式的解决方案。后来ms出了wp7,htc又发扬了自己的优秀传统,hd2的硬件方案又是回炉了一遍,出锅就是hd7,还卖那么贵。当然啦,针对wp7半残系统的软件优化还是少不了的,但估计也精细不到哪去。谁都知道wp7还要再升级的,就好像android。。。。1.1?或者。。。iphone一代?
回头说nexus s,也是有它必然性的,arm技术进步换代不说,google之于apple,也要做出个这样的东西来。也不致于下次有记者问android为什么没有比iphone好的手机的时候也不用拿galaxy s这个非正统来搪塞,况且galaxy s也并不能完全击败iphone4。nexus s应该能坐上王座,但是能有多久会是个问题。不过确实很期待新的android display server,不知道2.3中会不会有。

附带specs,images
Nexus two specs


Oct 30, 2010 Specs for the Samsung Nexus Two include 1.2GHz processor, a 4-inch Super AMOLED or AMOLED display, 5-megapixel rear-facing camera


samsung nexus s android gingerbread phone


samsung nexus s specification


The new android phone Samsung Nexus S specs has leaked which confirms that the Nexus S will have android 2.3 Ginger Bread operating system. The other technical specs details given below.



  • camera: 5 megapixel with LED Flash

  • Battery: 1500 mAh,

  • Quad-band GSM support

  • 3G bands

  • 1700 MHz processor

  • HSPA support, but sadly not of the HSPA+

  • Download speed will be 7.2 Mbps

  • Upload speed 5.76 Mbps.


The samsung nexus s phone is almost a 1:1 copy of the existing GT-I9000 Galaxy. But it is much rounder and it comes with a LED. What’s under the hood, is uncertain.


samsung nexus s android gingerbread


samsung nexus s specs Samsung Nexus S: Specs Update and Release Date on 2011? | Rumor Review


Previously we only had renders of LG’s Tegra 2 phone, but thanks to Engadget we now have our first real pictures. Updated specs for this superphone include the dual-core 1 GHz NVIDIA Tegra 2 processor, 4 inch display, 8 megapixel camera with LED flash, 1080p video capture, front-facing camera, and a 1500 mAh battery.


LG Star with Tegra 2 coming in early 2011 to T-Mobile 4G?

Early renders of the device indicated it was headed for Verizon and would support 4G LTE, but our sources tell us those pics were just mock-ups and Verizon has not actually picked up the device yet. Believe it or not, we are hearing the LG Star will land on T-Mobile with HSPA+ support in mid Q1 2011.



LG Tegra 2 with Android 3.0 and LTEA new LG with Android OS was leaked out today by Engadget. It is a 4G LTE handset that packs a dual-core Tegra 2 processor from NVIDIA and can record 1080p video.

LG is the first company that announced a Tegra 2 handset, this announcement was made about a month ago via press release. The plan was that LG will launch both a Tegra 2 handset and tablet before Q4, but because the Gingerbread will arrive later this year, a delay was made in order that both of these two LG tablet and smartphone to have Android 3.0 on board. The LG Tegra 2 handset will launch on Verizon.



LG definitely has the right idea with this one, and we can't wait to hear and see more about it!


Details are gradually emerging for the Olympus, which is said to resemble a smaller Droid X. It may not be exclusive to AT&T and could reach Verizon, possibly with LTE for 4G. An AT&T launch could happen in late January and might be detailed at CES if it holds.





moto这个就不大靠谱了,连个图都没有,无图无真相嘛。

Thursday, October 14, 2010

compilation: about grub customizer

Manager Grub2 boot loader using Grub Customizer(GUI)
Grub Customizer is a graphical interface to configure the grub2/burg settings with focus on the individual list order – without losing the dynamical behavior of grub.The main feature is the boot entry list configuration – but not simply by modified the grub.cfg: to keep the dynamical configuration, this application will only edit the script order and generate proxies (script output filter), if needed.

For the moment Grub Customizer only provides simple features,but it should be the first graphical interface to manager Grub2 settings since Grub2 was used in Ubuntu 9.10.And Daniel Richter (the maintainer) will add more useful features.
Planned features:

* configuration of the /etc/default/grub preferences

* grub2 recovery functionality for live cds

Install and Use Grub Customizer:

Open a terminal window from Applications -> Accessories menu,run this command to add the PPA(support Lucid and Maverick):

sudo add-apt-repository ppa:danielrichter2007/grub-customizer

then update and install Grub Customizer with:


sudo apt-get update
sudo apt-get install grub-customizer
if u use ubuntu-tweak, grub customizer may also be installed by it without effort.

After installation,launch from Applications -> System Tools -> Grub Customizer and you will see the previous picture.There are a few buttons on the top,highlight one line and choose one button to remove,move up/down,and apply changes.

Grub Customizer Project page:https://launchpad.net/grub-customizer.


How-To: Fix Your Ubuntu Boot Screen

from:kyleabaker

If you’re using Ubuntu 10.04 or newer and have installed the proprietary Nvidia or ATI video drivers then you likely know what I’m talking about.


The nice Ubuntu boot screen that you saw during the installation is now a low quality image and the resolution is wrong. Fortunately for you and I, there is a fix for this written by Marius Nestor at Softpedia.


I’ve taken the liberty to implement his steps in a single script that makes the work on your end a much easier task. Only use this script if you have not already attempted to follow Marius Nestor’s tutorial.


Warning: Use this script at your own risk.



Steps



  1. Download the zipped script and extract it: plymouth-resolution-fix.sh.zip

  2. Open a terminal window and navigate to the directory containing the script.

  3. Enter the following command to make the script executable:

    chmod +x plymouth-resolution-fix.sh

  4. Enter the following command to run the script (followed by your password):

    sudo ./plymouth-resolution-fix.sh



Be patient for this script to complete, it will let you know when it is. After its complete, simply reboot your computer to verify the results.


To Revert these Changes


If you’d like to undo these changes, you can download the following script and run it the same as you ran the first one. This will undo the changes made.


Friday, September 10, 2010

用hda-verb解决alsa不能自动设置好神舟a460 alc269内置音箱的pin-clts的问题

新买的神舟a460笔记本的内置音箱不能出声
起初以为是喇叭坏了,因为windows也不出声,后来玩mac的时候偶然弄出了声音,这样的话linux开源先进性就一定可以自己tweak
今天花了几个小时找到了workaround,记录下来
感觉这种情况多发生在i3,i5,i7等较新平台

1,codec dump
代码:
cat /proc/asound/card0/codec#0

结果得到alc259,不知为何不是alc269

2.google上搜索alsa alc259
找到这里https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/582199
细读里面的内容,找到hda-analyzer
在hda-analyzer里面试着更改各种选项,发现最重要的是node 0x14里面的pin-ctls没有OUT,需要手动更改,但是每次重启都要重新设置才可以

又在上面的页面发现了hda-sound-tools这个软件包,里面有工具hda-verb
google hda-verb的用法发现可以通过SET_PIN_WIDGET_CONTROL这个参数正确设定pin-ctls
自己摸索出了
代码:
hda-verb /dev/snd/hwC0D0 0x14 SET_PIN_WIDGET_CONTROL 64

64是由0x40转换而来,0x40是在hda-analyzer里面发现的

3. 把上面命令加入
代码:
/etc/rc.local
以实现开机自动执行

重启搞定。
只不过插上耳机需要手动禁用内置喇叭。个人更喜欢这样。

类似问题:http://juanjoalvarez.net/en/detail/2010/jul/26/ubuntu-linux-1004-64bits-sony-vaio-vpc-eb-2x5e-vpc/
也是ix平台

1.不知道有高人还有更好的方法没有,比如写一个alsa的patch。。。我不会编程。。。
2.windows怎么tweak驱动可以达到这样的目的
3.mac下通过编辑voodoohda里面的nodetopatch也可以实现发声

Winload.exe错误及解决


安装ghostxp后,无法进入Vista,重启时会出现如下提示:


----------------------------------------------------------


Windows未能启动,原因可能是最近更改了硬件或软件,解决此问题的步骤:


1.插入Windows安装光盘并重新启动计算机


2.选择语言设置,然后单击“下一步”


3.单击“修复计算机”


如果没有此光盘,请与您的系统管理员或计算机制造商联系,以获得帮助


文件 \Windows\System32\Winload.exe


状态 0xc00000e


信息 无法加载所选项,因为应用程序失去或损坏


----------------------------------------------------------


• 故障原因分析:


(1)在实际应用中,Winload.exe发生损坏或丢失的可能性很小,错误一定是由其它原因起的。Vista安装分区改变容量大小,或者改变 Boot 文件夹所在分区的文件格式,都会引起BCD中Vista加载器 device 或者 osdevice 项的值发生变化,变成unknown,从而引起启动错误。


(2)在官方的解释中还有可能是最近更改了硬件或软件的原因。


(3)而由众多网友提供的实践结论是,不论是双系统还是只有一个Vista,只要用Ghost“重写”过活动分区,即使文件格式与分区大小都没变,再恢复Vista时就可能会出现这种情况。哪怕象联想机型运行一键恢复出厂设置都不能避免,这似乎是Ghost的一个BUG。


• 故障解决方法有以下几种:


1、Bcdedit命令解决办法


用WinPE启动,运行CMD(命令行模式),在\windows\system32目录下,运行如下三个命令,重启可进入Vista:


bcdedit /set {bootmgr} device boot


bcdedit /set {default} device boot


bcdedit /set {default} osdevice boot


bcdedit /set {default} detecthal 1


如果是XP和Vista的双系统,要事先在XP下用 bcdedit /v获知{bootmgr}和{default}的32位GUID,同时把 boot 换成具体的路径指向。在WinPE中使用bcdedit /set命令时用GUID替代以上内置保留标识符。例如:


bcdedit /set {9dea862c-5cdd-4e70-acc1-f32b344d4795} device partition=d:


bcdedit /set {320af4ca-47dd-11dd-98f7-000ae4c23645} device partition=d:


bcdedit /set {320af4ca-47dd-11dd-98f7-000ae4c23645} osdevice partition=d:


用Ghost备份双系统,提前在Vista下运行以上命令后再备份,以后Ghost恢复就不会有Winload.exe问题了。



这里就不太清楚partition=X:中,X是什么了,我直接用C:反正是成功了

Monday, July 26, 2010

dropbox on ubuntu 10.04

Install Dropbox by apt

加入 Dropbox 軟體來源

jisare@lucid:~$ sudo vi /etc/apt/sources.list

...



# Dropbox on Ubuntu 10.04

deb http://linux.dropbox.com/ubuntu lucid main

deb-src http://linux.dropbox.com/ubuntu lucid main


加入 Dropbox 認證金鑰,
jonny@lucid:~$ gpg --keyserver keyserver.ubuntu.com --recv 5044912E

jonny@lucid:~$ gpg --export --armor 5044912E | sudo apt-key add -


安裝 Dropbox

jonny@lucid:~$ sudo apt-get install nautilus-dropbox

Tuesday, June 22, 2010

songtaste on linux, scripts power

perl- up to date

#!/usr/bin/perl -w
use strict;
use LWP::Simple;

my $dir = "/home/stesen/music";

my $url = $ARGV[0];
my $act = $ARGV[1];
unless ($url =~ m#^http://#) {
print "Wrong URL!\n";
}
unless ($act =~ /^(d|l)$/) {
print "Download OR Listen?\n";
}
my $page = get ($url);
my $name_begin = "border=\"0\" alt=\"";
my $name_end = "\"> Listen Now";
my $link_begin = "javascript:playmedia1\(";
my $link_end = "\);ListenLog";
$page =~ m/$link_begin(.*)$link_end/is;
my $unclean_link = $1;
$unclean_link =~ s/ //g;
$unclean_link =~ s/\(//g;
$unclean_link =~ s/\)//g;
$unclean_link =~ s/\'//g;
my @misc = split /\,/, $unclean_link;
my $link = $misc[6].$misc[2].".mp3";
print $link;

if ($act eq 'd') {
$page =~ m/$name_begin(.*)$name_end/is;
my $name = $1;
$name =~ s/ //g;
$name =~ s/\(//g;
$name =~ s/\)//g;
$name =~ s/\[//g;
$name =~ s/\《//g;
$name =~ s/\&//g;
$name =~ s/\@//g;
$name =~ s/\”//g;
$name =~ s/\"//g;
$name =~ s/\“//g;
$name =~ s/\`//g;
$name =~ s/\'//g;
$name =~ s/\\//g;
$name =~ s/\///g;
$name =~ s/\#//g;
$name =~ s/\!//g;
$name =~ s/\*//g;
$name =~ s/\、//g;
$name =~ s/\[//g;
$name =~ s/\]//g;
$name =~ s/\{//g;
$name =~ s/\}//g;
$name =~ s/\;//g;
$name =~ s/\://g;
$name =~ s/\$//g;

exec "wget -c $link -O ${dir}/${name}.mp3";
}
elsif ($act eq 'l') {
exec "mplayer $link";
}


bash- probably won't work
下载songtaste的音乐比较麻烦,以前用mozilla-mplayer听歌,可以直接用右键获取音乐地址
现在debian sid的源里没有mozilla-mplayer,只有一个gmplayer的插件,质量很差,听到一半常常断掉
换xine的插件稍微好些,但没法获取下载地址了,所以只好写个脚本专门来下载收听
我水平太次,脚本丑陋不堪,而且不是100%的歌都能正常收听下载,辉耀出品必属废品,谅解..
先要装:
links,也可以用其他的lynx,w3m之类,感觉links稍微快些(也许是错觉)
wget,rayfile只能单线程下载,自然首选wget,好在速度不慢
iconv,转换编码,我用xterm编码UTF-8,系统的locale也是en_US.UTF-8,而 songtaste的页面源代码是gb2312
mplayer,听音乐用
########################################################
#!/bin/bash
#get music from
www.songtaste.com
if [ $# != 2 ] then echo "Usage: stmusic.sh URL l" echo " stmusic.sh URL d" exit else URL=$1fiTOP=/home/stesen/musicNUM=`echo ${URL}|sed -e "s/http:\/\/songtaste.com\/song\///g" -e "s/\///g"`links -source "
http://60.10.96.74/play.php?song_id=${NUM
}" |grep "preview" > ${TOP}/.stmusic.tmp
#ip 60.10.96.74 即songtaste.com,用ip可以减少dns解析时间#但是今天它换ip了,估计是服务器出问题,变成115.100.249.248#所 以,换回http://songtaste.com/play.php?song_id=XXX还是直接用ip自己斟酌吧
if [ $2 = d ]
then
NAME=`iconv -f gb2312 -t utf-8 ${TOP}/.stmusic.tmp|cut -d"\"" -f4|sed -e 's/\ /-/g' -e 's/\./-/g' -e 's/(//g' -e 's/)//g' -e 's/…//g' -e 's/\ //g' `
TP=`iconv -f gb2312 -t utf-8 ${TOP}/.stmusic.tmp|cut -d"\"" -f12 |cut -d"." -f5`
FULLNAME=`echo ${NAME}.${TP}|sed -e "s/-././g"`
wget -c `iconv -f gb2312 -t utf-8 ${TOP}/.stmusic.tmp|cut -d"\"" -f12` -O ${TOP}/${FULLNAME}
elif [ $2 = l ]
then
mplayer `iconv -f gb2312 -t utf-8 ${TOP}/.stmusic.tmp|cut -d"\"" -f12`
fi
rm ${TOP}/.stmusic.tmp
exit
#######################################################

用法:
./stmusic.sh url l #listen
./stmusic.sh url d #download

url即类似
http://songtaste.com/song/1625284/
这样的页面